October 22, 2007, 04:20 PM
PrasannaConverting PDF to JPEG
Hi All,
I need the reports generated (in PDF format) to be converted to JPEG format and held in word document template so that the user can manually open the word document edit it and get it printed. I was able to embed the images (chart, graph etc) in to the word document using VB Script but I was not able to hold the PDF in JPEG Format. Is there any possibility to convert or hold PDF files as JPEG format (other than graphs) in WEBFOCUS .Any suggestions in this issue is highly appreciated. I’m using WebFocus Developer Studio Version 7.1.7.
Thanks
Prasanna
October 22, 2007, 04:48 PM
Darin LeeNot within the WF environment or using WF tools. PDF is one format, JPEG is another so a PDF cannot be held as JPEG. However, we do something similar for imaging documents, but it all happens outside of WF. WF generates the PDF and saves (or FTP's) to a directory location which is monitored by a conversion tool. Anytime it finds a PDf in its directory it converts it from PDF to TIFF format (I believe this is a freeware tool, but i don't know anything more about where it came from) and sends it to the process which creates a document for our imaging system from the TIFF file.
Unfortunately, the document is no longer available to the WF tools so it can't be processed or distributed any further within WF.
Maybe your answer is just to create an HTML layout page so all of the objects are available to the user and can be copied/pasted into their own word docs which they can edit to their own content.
October 29, 2007, 05:32 AM
GamPYou could also check
OmniFormat, which is a free conversion tool that accepts multiple input and output formats (among which pdf and jpg). From the look of it, this product is quite capable of doing what you want it to do.
November 19, 2007, 12:04 PM
blaissIf you wanted to do it in code, try
ImageMagick .
It's basically a command-line image manipulation tool.
We use it to convert photos on the fly in a windows environment, but it works across several platforms. As long as your PDFs are not encrypted or otherwise protected, you can convert them with a simple one-line command that can be executed from within a fex.