In PDF XChange Viewer we can go to file -> export to images. We can select image type "TiFF" from the drop down list. There is a button option besides it which opens image savings Options. From there we can select type of compression, X-DPI ,Y-DPI, Image Type etc. If we want to do same thing programatically, we use following code to select image type to tiff.
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.FolderName", sTMPpath, 0
frmMain.oPDFXCview.SetProperty "Export.Image.FileName", "TempPDFFile", 0
frmMain.oPDFXCview.SetProperty "Export.Image.RangeText", "", 0
frmMain.oPDFXCview.SetProperty "Export.Image.Background", "0xFFFFFFFF", 0
But, we don't know how to programatically control Image type in Image saving options. We have also read whole manual but we can't find anything. Please suggest a resolution to this. We want to make 1> image type to 1(Black and White) for every tiff 2> Compression to CCIT Group 3 fax for every tiff. Our pdf control version for this program is 2.5.0199.0000.
How to programatically control Image Saving Options
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
docu-track99
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
How to programatically control Image Saving Options
You do not have the required permissions to view the files attached to this post.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: How to programatically control Image Saving Options
Hello docu-track99,
I don't think there format specific options are accessible through the Viewer AX SDK, but maybe an alternative solution like the simple DLL SDK for rendering the pages and then using a third party tool for the image generation as suggested here by Vasyl will help?
https://forum.pdf-xchange.com/ ... 519#p79519
Regards,
Stefan
I don't think there format specific options are accessible through the Viewer AX SDK, but maybe an alternative solution like the simple DLL SDK for rendering the pages and then using a third party tool for the image generation as suggested here by Vasyl will help?
https://forum.pdf-xchange.com/ ... 519#p79519
Regards,
Stefan