Hi..Attached is a testPDF.pdf. When we programmatically export pdf to tiff, the output file is 12x greater than orignal file.
frmMain.oPDFXCview.OpenDocument sTempFile
frmMain.oPDFXCview.GetActiveDocument hdib
frmMain.oPDFXCview.SetProperty "Export.Image.RangeType", "All", 0
frmMain.oPDFXCview.SetProperty "Export.Image.Resolution", "300", 0
frmMain.oPDFXCview.SetProperty "Export.Image.RangeReverse", "0", 0
frmMain.oPDFXCview.SetProperty "Export.Image.RangeFilter", "1", 0
frmMain.oPDFXCview.SetProperty "Export.Image.Type", "TIFF", 0
frmMain.oPDFXCview.SetProperty "Export.Image.Mode", "AllToOneMultiImage", 0
frmMain.oPDFXCview.SetProperty "Export.Image.FolderName", sTempPath, 0
frmMain.oPDFXCview.SetProperty "Export.Image.FileName", "TempPDFFile", 0
frmMain.oPDFXCview.SetProperty "Export.Image.RangeText", "", 0
frmMain.oPDFXCview.SetProperty "Export.Image.Background", "0xFFFFFFFF", 0
frmMain.oPDFXCview.ExportDocument hdib, PXCVA_NoUI
frmMain.oPDFXCview.CloseAllDocuments
When we try exporting the pdf to tiff using tracker's export menu the output file is only 3x the original size. Can you please help us how programmatically export pdf to tiff and produce a smaller output file.
Thank you.
Export PDF to TIFF, output is 12x the size of original
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Export PDF to TIFF, output is 12x the size of original
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 205
- Joined: Fri May 18, 2012 8:41 pm
Re: Export PDF to TIFF, output is 12x the size of original
Hi docu-track99,
Thank you for your post.
I just ran your code snippet with your .pdf file and got only a 5,503 KB file from the original 1,065 KB which implies almost 6 times the original size.
Thanks.
Sincerely,
Thank you for your post.
I just ran your code snippet with your .pdf file and got only a 5,503 KB file from the original 1,065 KB which implies almost 6 times the original size.
Thanks.
Sincerely,
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Export PDF to TIFF, output is 12x the size of original
Hi, what we are still not sure of is why the programmatic version of the operation produces different results than when it is done manually. What would be the call to get the same output programatically as when done manually from the dialog box?
-
- User
- Posts: 205
- Joined: Fri May 18, 2012 8:41 pm
Re: Export PDF to TIFF, output is 12x the size of original
Hi docu-track99,
Thank you for your post.
Yes, they must be the same. That's actually what I get: 5,503 KB.
Thanks.
Sincerely,
Thank you for your post.
Yes, they must be the same. That's actually what I get: 5,503 KB.
Thanks.
Sincerely,
-
- User
- Posts: 381
- Joined: Mon Jun 13, 2011 5:10 pm
Re: Export PDF to TIFF, output is 12x the size of original
Just to add a bit to this discussion:
In the end user PDF X-Change Viewer you can set TIFF export options including resolution, colour bit depth, and compression with the "Options" button beside the "Image Type" selection drop-down list. These will impact the file sizes coming from image export from the viewer and may impact your comparisons.
These settings (other than the ones listed on pages 181/182 of the Active-X manual PDFV_AX.pdf) cannot be directly set programatically, however you can accomplish this indirectly by setting things as you wish in the end user viewer, then export your settings from the viewer with the menu command "Edit"->"Export all settings to data file". Select a file to save to (e.g. "z:\imageexport.dat") then load this settings file into the Active-X control with the "LoadSettings" method.
Note that these exported settings include all viewer settings, not just those related to image export, so you will have to be careful with this method so that you don't mess up any custom toolbars, pane layouts, etc, that you might have defined.
Hope this helps.
-Walter
In the end user PDF X-Change Viewer you can set TIFF export options including resolution, colour bit depth, and compression with the "Options" button beside the "Image Type" selection drop-down list. These will impact the file sizes coming from image export from the viewer and may impact your comparisons.
These settings (other than the ones listed on pages 181/182 of the Active-X manual PDFV_AX.pdf) cannot be directly set programatically, however you can accomplish this indirectly by setting things as you wish in the end user viewer, then export your settings from the viewer with the menu command "Edit"->"Export all settings to data file". Select a file to save to (e.g. "z:\imageexport.dat") then load this settings file into the Active-X control with the "LoadSettings" method.
Note that these exported settings include all viewer settings, not just those related to image export, so you will have to be careful with this method so that you don't mess up any custom toolbars, pane layouts, etc, that you might have defined.
Hope this helps.
-Walter