PH PDF Maker beta 3

Hardware, coding, music, graphic and various applications

Moderators: Mug UK, moondog/.tSCc., [ProToS], lp, Moderator Team

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sat May 21, 2016 12:34 am

TBH, I never tried Everst unil now. So I did a quick test after finding it among my software archives.
Version 3.6 beta4 it say.
I just printed out a single line of text "hello there". But it produces 2 pdf file instead of 1 pdf file. One of them being empty.
The pdf file that contains the "hello there"... according to the logfile, had an error as well.

When i loaded the Everst.doc file and tried to print, it crashed with "out of memory" error. That file was 64K long and contains 80 pages, so I am not surprise if it ran out of memory doing it. There were also several errors in each pages as logged by the phpdf.log file.

So looks like Everst differs slightly from the others. I need to deep dive into it. Sorry about that.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sat May 21, 2016 4:00 am

I loaded the same 64K doc in QED and printout a 16 page PDF of size 45KB without any errors. All text seems to be there.
No sure why Everest is sending so many more v_clrwrk that does a formfeed on a printer, meaning a new page.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

PeterS
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: PH PDF Maker beta 3

Postby PeterS » Sun May 22, 2016 2:26 pm

I'm using Mint on a Milan.

I couldn't work out how to make QED use device 23 so I tried Papyrus that offers NVDI: PHPDF

It produced a PDF file but when opened in zView each page contains just the top left corner of the text (1/2 width , 1/3 height of A4).

a V_OPENWORK nvdi v503 108 fonts 300dpi
VQ_EXTEND 1 c5=[0]
VQ_EXTEND 0 c5=[-1]
VQ_EXTEND 1 c5=[-1]
ESCAPE > [1C][28] V_COPIES request=[2] but set to 1 only
a V_CLOSEWORK

a V_OPENWORK nvdi v503 108 fonts 300dpi
VQ_EXTEND 1 c5=[0]
VQ_EXTEND 0 c5=[-1]
VQ_EXTEND 1 c5=[-1]
ESCAPE > [837][2103] ???unknown
ESCAPE > [837][2103] ???unknown
ESCAPE > [837][2103] ???unknown
VQ_EXTEND 1 c5=[-1]
VQ_EXTEND 1 c5=[-1]
a FILL_PERIMETER 0
VQ_EXTEND 1 c5=[-1]
a FILL_PERIMETER 0
SET_CLIP hdl=[24] 1 [0,0][2475,3495]
--- old clip minx=[0] miny=[0] maxx=[1279] maxy=[1023]
---new clip minx=[0] miny=[0] maxx=[2475] maxy=[3496]
SET_CLIP hdl=[24] 1 [0,0][2476,3495]
--- old clip minx=[0] miny=[0] maxx=[1279] maxy=[1023]
---new clip minx=[0] miny=[0] maxx=[2475] maxy=[3496]
a FILL_INTERIOR 0
a WRITE_MODE 2
a ++Page #1 >> 300dpi 2475x3496
a Pline done = 10873
a V_UPDATEWORK
a V_CLEARWORK
a FILL_PERIMETER 0
VQ_EXTEND 1 c5=[-1]
VQ_EXTEND 1 c5=[-1]
a FILL_PERIMETER 0
SET_CLIP hdl=[24] 1 [0,0][2475,3495]
--- old clip minx=[0] miny=[0] maxx=[1279] maxy=[1023]
---new clip minx=[0] miny=[0] maxx=[2475] maxy=[3496]
SET_CLIP hdl=[24] 1 [0,0][2476,3495]
--- old clip minx=[0] miny=[0] maxx=[1279] maxy=[1023]
---new clip minx=[0] miny=[0] maxx=[2475] maxy=[3496]
a FILL_INTERIOR 0
a WRITE_MODE 2
a ++Page #2 >> 300dpi 2475x3496
a Pline done = 25730
a V_UPDATEWORK
a V_CLEARWORK
a FILL_PERIMETER 0
VQ_EXTEND 1 c5=[-1]
VQ_EXTEND 1 c5=[-1]
a FILL_PERIMETER 0
SET_CLIP hdl=[24] 1 [0,0][2475,3495]
--- old clip minx=[0] miny=[0] maxx=[1279] maxy=[1023]
---new clip minx=[0] miny=[0] maxx=[2475] maxy=[3496]
SET_CLIP hdl=[24] 1 [0,0][2476,3495]
--- old clip minx=[0] miny=[0] maxx=[1279] maxy=[1023]
---new clip minx=[0] miny=[0] maxx=[2475] maxy=[3496]
a FILL_INTERIOR 0
a WRITE_MODE 2
a ++Page #3 >> 300dpi 2475x3496
a Pline done = 39568
a V_UPDATEWORK
a V_CLEARWORK
a FILL_PERIMETER 0
ESCAPE > [16][22] V_CLR_DISP_LST
a Saved PDF [C:\PHPDF002.PDF]
a V_CLOSEWORK
a All done!

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Tue May 24, 2016 3:50 pm

PeterS wrote:I'm using Mint on a Milan.

thanks for trying out on a Milan. :-)

PeterS wrote:I couldn't work out how to make QED use device 23 so I tried Papyrus that offers NVDI: PHPDF

QED only uses dev 21, so I always take over dev 21 on my assign.sys file.

PeterS wrote:It produced a PDF file but when opened in zView each page contains just the top left corner of the text (1/2 width , 1/3 height of A4).

Yes, this is a NVDi 5 issue since day one, and found by others driver developers as well. Currently there is no solution for this.
So for NVDI 5, you may use papyrus to make graphical pdf only, as graphics seems not to be affected by this.

Otherwise, you may install speedo 5c which will printout all the text without any issues.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

PeterS
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: PH PDF Maker beta 3

Postby PeterS » Tue May 24, 2016 7:34 pm

Always happy to help with testing. It's a Milan with 060 as well.

I also tied Luna (editor) and it created a pdf that I could view in zView (it did crash Porthos, some PDFs do that).

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Sat Sep 23, 2017 7:14 pm

Hi Thanks Wongck for this PDF maker. I've just set up the 68000 version using tos 2.06 on Gemulator on a Windows 7 PC.

It wouldn't work at first because I followed the instructions given and the program to configure it couldn't find it's resource file.
There wasn't a resource file in the 68000 folder so that threw me off and I gave up for a while.
Then I looked in the folder for the faster cpu's and saw it had a rsc file in it.
So I copied this resource file into the same folder as the configuration program and it worked.
Would be useful to update your installation guide.

So now I have it up and running with Speedo Gdos 5.7 and I'm experimenting to see what works.
Printing a PDF file goes really quite quickly using the Gemulator emulator and 14MB memory.

After fiddling a bit Everest 3.6 prints out fine.

Using Atari Works:
It prints out a Word Processor document just fine.
I can't get a Spreadsheet doc to print to PDF from works. Am I missing something? Do I need to have a special font
installed to do this? Or is there some way in works to limit the number of Columns to be printed,
(in case too many columns is the problem)?
Did you manage to get any spread sheets to work with the PDF printer?

Will try out Papyrus 3 + later.

Great work Wongck. For me this seems like an amazing achievement on your part.
Many thanks for your efforts! Keep on keeping on.
regards
BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sun Sep 24, 2017 1:12 am

Thanks for trying out PH PDF maker Beta 3.
I used to own a Gemulator but I sold my Gemulator board several years ago.
I will review my instructions for PH PDF Maker again, great that you found the RSC file.

I have not tried printing out spreadsheet from Atari Works. :oops: I really should have.
During the development I only tested the Word Processor, so I don't think it will work properly.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Mon Sep 25, 2017 11:03 pm

Hi Wongck thanks for reply.
PDF publication of a spreadsheet from Atari Works almost works but not quite.
I've attached 2 files of the out put from my system to illustrate. Spread1.pdf shows what's produced
from a normal spreadsheet. All of the cells are printed out but their numerical values are printed
outside the cell grid and overlayed over each other as shown.

Spread2.pdf shows what happens when all of the numerical values are removed and the spreadsheet
cells are filled with text instead. In this case every cell and it's text content is accurately
reproduced.

This looks hopeful to me. Maybe there is a way to get the numerical data to sit in it's corresponding cell?
I think the limitation here in "Works" is that only 7 or 8 columns may be printed out in "portrait" size
pages - but I think that's to be expected and probably sufficient for many purposes.
You do not have the required permissions to view the files attached to this post.
regards

BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Tue Sep 26, 2017 12:40 am

Wow, Thanks for the detailed analysis.
In general, the PDF maker receives coordinates and characters to print via a specific VDI function.
AFAIK, both strings and numbers uses the same function as there is no special VDI function for numbers only.
So I have to see what coordinates are being sent with the numeric data.
All coordinates and placement information are provided by Atari Works, the PDF maker makes no assumptions of where stuff are to be placed.

I think you should be able to "squeeze" more columns in by reducing the font size.
But then this is also a constraint found in modern day spreadsheet like Excel.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Tue Sep 26, 2017 10:37 pm

Hi thanks for your reply. Yes making cell size smaller & smaller font will allow printing of more columns.
Has anyone tried printing a PDF from Atari Works spreadsheet on real hardware or other emulator?
Perhaps emulation introduces errors?
Has anyone tried printing a PDF from any other GDOS aware Spreadsheet program for comparison?
I tried setting up SpeedoGdos on the Steem emulator today but it doesn't want to play :-(
So I can't check this out under Steem at the moment and my other hardware is mothballed for a while.
Cheers
regards

BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sat Oct 07, 2017 4:17 pm

I think the issue is the alignment command.
Currently PH PDF maker is aligning to the entire page i.e. align page-wise. But you can see that numeric values are right aligned to the cell.
So that's why all numbers are printed towards the right side of the page instead of cell-wise.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Sun Oct 08, 2017 8:11 pm

Hi wongck
Thanks for reply. I think I almost understood it. I have no programming experience. But I think this may mean that there is a solution possible
by making a change within PH PDF Maker? For some reason text contents are printed within the relevant cells but numeric values aren't.
I guess in terms of functionality it would be better if the numeric values were printed in their appropriate cells even if that meant
the text content wasn't. I really appreciate your continued interest in this.
If it can be sorted for "Works" spreadsheets then maybe it will work for other Speedogdos etc aware spreadsheets?
regards

BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sun Oct 08, 2017 10:54 pm

Yes, it can be fixed.

On the screen, numbers are displayed right aligned to cell boundaries.
The program is making all right alignment to the right margin, not cell. That's why it is drawing it on right side in the PDF.
So if you right align Text in the spreadsheet, you should get the same effect as numbers, all drawn to the right in the PDF.
If you now left align numbers, it should come out correct inside the cell, in the PDF.

I will get it fixed next couple of days.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Mon Oct 09, 2017 8:28 pm

Great. Thanks. I'll look forward to trying it out.
regards

BJ

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2057
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: PH PDF Maker beta 3

Postby charles » Mon Oct 09, 2017 9:01 pm

any chance you can make a pdf to txt or doc ascii ??
atari is my lifestyle,not a hobby.
HOLD ON ! ! !,
Im printing unreadable characters ...!

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Mon Oct 09, 2017 10:58 pm

charles wrote:any chance you can make a pdf to txt or doc ascii ??

Only need a converter when you have compressed or encrypted PDF.
If you open a clean uncompressed, un-encrypted PDF, you can just read the text inside.

No, I do not know how to parse a PDF file.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Fri Oct 13, 2017 10:04 pm

Any luck with the fix / update?
Looking forward to trying it out. Have to say I have no idea how much work was involved in getting pdf print out to work from Gdos aware progs.
Seems like a massive step forward to me -- and thanks for your efforts.
regards

BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sat Oct 14, 2017 12:33 am

Sorry to keep you waiting.
While at it I also caught a red herring... LOL... almost always does, and that's trying to optimise it & making it smaller.
Yeah, it's actually fixed. Will try to put it up soon.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sat Oct 14, 2017 11:56 am

So now I have uploaded PDF Maker beta 3a.
This corrects the numeral misalignment in the spread sheet cell of Atari Works.
Some minor bug fixes as well.

get it from this link.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
dhedberg
Atari Super Hero
Atari Super Hero
Posts: 558
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: PH PDF Maker beta 3

Postby dhedberg » Sat Oct 14, 2017 8:14 pm

Thanks! What did they change in NVDI 5, making it impossible for you to render text? Did they remove something?
I thought version 5 of NVDI was the ultimate version. :-)
Daniel, New Beat - http://newbeat.atari.org

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sun Oct 15, 2017 12:10 am

dhedberg wrote:Thanks! What did they change in NVDI 5, making it impossible for you to render text? Did they remove something?
I thought version 5 of NVDI was the ultimate version. :-)

I think they did something to the dpi... but I am not sure.
In any case, from NVDI 4 up, it is not good because it is not sending characters any more but small pixels that make out the characters.
This makes the OCR in PDF useless. So best to use for PDF is still SpeedoGDOS.

Like you said, NVDI 5 is the ultimate so it is a pity that they have moved to such a position on printing.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Thu Oct 19, 2017 11:36 am

Great. Thanks for the new update. Will try it out in the next few days on Tos 2.06.
regards

BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Thu Oct 19, 2017 2:58 pm

Do you do Mint?
Have you managed to run Mint & SpeedoGDOS ?
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

bj
Captain Atari
Captain Atari
Posts: 468
Joined: Sun Sep 21, 2003 10:30 am
Location: London

Re: PH PDF Maker beta 3

Postby bj » Sun Oct 22, 2017 7:58 pm

Hi Wongk
So I tried it on Tos 2.06 using Gemulator with 14MB memory as before.
The good news - Speadsheet numerical data now sits in it's appropriate cell when printed to PDF from Works for spreadsheets up to 2 pages in size -- Great!
However attempts to print out more than 2 pages result in a PDF file that is unreadable on my PC Windows system.
Have you been able to print out and successfully view a spreadsheet of more than 2 pages on your system?

As a check I tried also to print to PDF a Word Processor document from Atari Works with the same result. It's fine up to 2
pages in length but anything of 3 pages and above also produces an unreadable PDF file on my system.
Do you get different results on your system?
regards

BJ

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: PH PDF Maker beta 3

Postby wongck » Sun Oct 22, 2017 11:35 pm

Do you get any errors listed inside the c:\phpdf.log file ?
Is the last entry "All Done" ?
It may be running out of memory during the rendering process.
What is in your AUTO folder ?

Try to printout pure text using QED. See how many pages can you print out?

I have successfully printed out 8 pages of text and graphics from Papyrus.
It is my test printout. But I have CT63 which has 512MB of TT ram.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list


Social Media

     

Return to “Professionals”

Who is online

Users browsing this forum: No registered users and 1 guest