Hi,
I want to automate a PDF to image (png) export process. I had a look into the FullDemo example (and the documentation) but couldnt find any properties to set options for specific image formats. I am able to set the dpi and file format but I also need to set the color bit depth, i.e. Indexed 8bpp.
Is there any possibility to specify PNG-Options that are available in the ExportDocument dialog when calling the ExportDocument function without GUI?
Regards,
Simon
ExportDocument - Image options
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17941
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: ExportDocument - Image options
Hello Simon,
Have you checked the Simple Viewer DLL SDK as well?
It allows you to render the pages to e.g. a DeviceContext, and then use that raster image data to generate the needed image file format yourself?
I do not think there's a way to control e.g. the bpp values for the Viewer AX export to images methods.
Regards,
Stefan
Have you checked the Simple Viewer DLL SDK as well?
It allows you to render the pages to e.g. a DeviceContext, and then use that raster image data to generate the needed image file format yourself?
I do not think there's a way to control e.g. the bpp values for the Viewer AX export to images methods.
Regards,
Stefan
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: ExportDocument - Image options
Hi Simon.
Sure, end-user will be able to change your custom png-options in UI mode, but no way to prevent it only in Export2Image dialog - you must prevent showing this dialog (by disabling the corresponding UI-command in menu/toolbar).
HTH.
Only one way exists. You may, like end-user, launch our EU-Viewer, open any pdf, show export-dialog and setup export-to-png options and press OK to remember your new options. Then you may export all viewer's settings to a file. Then you will be able to use this file to load customized settings each time when your program starts(by pdfControl.LoadSettings("...\MyPDFVSettings.dat"), see also pdfControl.SaveSetting(..))).Is there any possibility to specify PNG-Options that are available in the ExportDocument dialog when calling the ExportDocument function without GUI?
Sure, end-user will be able to change your custom png-options in UI mode, but no way to prevent it only in Export2Image dialog - you must prevent showing this dialog (by disabling the corresponding UI-command in menu/toolbar).
HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 7
- Joined: Fri Sep 09, 2011 9:21 am
Re: ExportDocument - Image options
Thanks, that works for me!
- Tracker Supp-Stefan
- Site Admin
- Posts: 17941
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact: