I am using WPViewPDF 1.46 and trying to create a jpeg file using the CommandStr(COMPDF_MakeJPEG, filename) method and I always get a -1 result. Using COMPDF_MakeEMF works fine.
cannot create jpeg from pdf
-
-
- Offizieller Beitrag
Hi,
you need to specify the page number:
"1=c:\pageone.jpg"
in the file name parameter.
Julian
-
Sorry, I should have been clearer. I am already doing this, e.g.
WPVIEWPDF1.LoadFromFile('C:\TEMP\wPDFMan.PDF');
ret := WPVIEWPDF1.CommandStr(COMPDF_MakeJPEG, '1=C:\TEMP\wPDFMan.jpg');ret is -1 and no file is created
when I do
ret := WPVIEWPDF1.CommandStr(COMPDF_MakeEMF, '1=C:\TEMP\wPDFMan.emf');
ret returns 1 and the file is created
Stephen
-
- Offizieller Beitrag
Hi,
I made a test right now - it works. Please try the latest setup (V1.46.5) suince it includes a change inn the make JPEG procedure. Maybe it was a problem there. If this does not help please send me PDF.
Julian
-
Hi
This now works. Sorry but I may have been using the wrong version of the dll file before which may have explained why is wasn't working.
I also had to fix a fault in the WPViewPDF1 unit. For TWPPDFViewOption it had values of wpPageSelection and wpPageMultiSelection but the code referred to wpShowPageSelection and wpShowPageMultiSelection.
Regards
Stephen