forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Create a PDF

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
BILLDOWS



Joined: 22 Jul 2005
Posts: 86
Location: Swansea, UK

PostPosted: Wed Jan 11, 2012 9:41 am    Post subject: Create a PDF Reply with quote

A few years ago I needed to create PDF files from a Clearwin program. The best solution I could come up with at the time was to generate a JPG file to disk and then use a 3rd party command line product (run from within the fortran program) - img2pdf - to read the .JPG and convert to .pdf. Works fine and quickly and with 'OK' quality. [img2pdf is a licenced product for 40 dollars]

I just wondered if others had used any other techniques they could recommend?

Many Thanks

Bill
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Jan 11, 2012 10:03 am    Post subject: Reply with quote

If you have Word for Windows then you could probably use your basic idea with Word by creating a macro to run from a Word command line.
Back to top
View user's profile Send private message AIM Address
IanLambley



Joined: 17 Dec 2006
Posts: 490
Location: Sunderland

PostPosted: Wed Jan 11, 2012 1:08 pm    Post subject: Reply with quote

Try installing a PDF printer such as the free version of PDF995 and then just print to the pdf printer rather than a physical printer.
Back to top
View user's profile Send private message Send e-mail
BILLDOWS



Joined: 22 Jul 2005
Posts: 86
Location: Swansea, UK

PostPosted: Wed Jan 11, 2012 2:11 pm    Post subject: Reply with quote

Dear Paul / Ian,

Many thanks for your suggestions.

What I need to do is to batch process sets of data and create automatically hundreds or thousands of PDF single page reports. The present approach works but quality is not the best. I can certainly create individual pages to output or to file using a pdf printer driver (and I do on occasion), but really want to generate directly from the fortran application in a batch run without user interaction. Not sure about the Word route if this could assist with this but I only have a slightly outdated Word version.

Thanks again, Bill
Back to top
View user's profile Send private message Visit poster's website
IanLambley



Joined: 17 Dec 2006
Posts: 490
Location: Sunderland

PostPosted: Wed Jan 11, 2012 2:22 pm    Post subject: Reply with quote

You are right that user intevention is required for PDF printers, but you can set the output name from Clearwin+ using:
SET_CLEARWIN_STRING( 'PRINTER_DOCUMENT', filename )
and then only a single key press of "Enter" is required per file.

Is it possible to:
1. Override this requirement in the PDF printer?
2. Use some clearwin function to supply the "Enter" via something like FEED_WKEYBOARD@?
3. Place all pages in one file and provide the name once and a single "Enter" key press?

Over to you Paul!
Back to top
View user's profile Send private message Send e-mail
BillBardsley



Joined: 19 Mar 2012
Posts: 3

PostPosted: Tue Mar 20, 2012 11:25 am    Post subject: Re: Create a PDF Reply with quote

BILLDOWS wrote:
A few years ago I needed to create PDF files from a Clearwin program. The best solution I could come up with at the time was to generate a JPG file to disk and then use a 3rd party command line product (run from within the fortran program) - img2pdf - to read the .JPG and convert to .pdf. Works fine and quickly and with 'OK' quality. [img2pdf is a licenced product for 40 dollars]

I just wondered if others had used any other techniques they could recommend?

Many Thanks

Bill


Bill

You can only get pdf files with embedded bit maps that way
which have poor resolution. The Simfit technique is to create
vector eps files which are tiny and of device-independent
resolution. These can then be used to create pdf, jpg, svg,
etc. with excellent resolution. You can do this from Plato
now or get the code from my website.

Bill
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group