Printing to TIFF

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Printing to TIFF

Post by TatianaS »

Hello,
I tried exporting a 100 page PDF document to TIFF image using ExportDocument command.
The functionality take about 2 seconds per page which is too slow for my purposes.
I am wandering if you could provide some code example for printing to TIFF image.

Thanks,
Tatiana
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Printing to TIFF

Post by Vasyl - PDF-XChange »

I tried exporting a 100 page PDF document to TIFF image using ExportDocument command.
The functionality take about 2 seconds per page which is too slow for my purposes.
Which DPI you have used for exporting?
I am wandering if you could provide some code example for printing to TIFF image.
For printing to TIFF image you may specify:
"Print.PrinterName" = <NameOfVirtualPrinterThatCanPrintToTIFF>
and use PrintDocument()...
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Re: Printing to TIFF

Post by TatianaS »

I tried with different DPI settings and the export is at the best 1 sec per page :(
So is there a way to print to TIFF if I do not have my own virtual printer that can print to image?
If not, can you recommend some other way to convert PDF to TIFF than by 'Image Export'?
Maybe by using your virtual print driver or dll...

Thanks,
Tatiana
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Printing to TIFF

Post by Vasyl - PDF-XChange »

Hi, Tatiana.

Strange. May be your pdf-pages are very large(in dimensions) or content on them is too heavy and renders slowly... Can you provide simple example pdf and piece of code for reproducing?

Or you may try our Viewer Simple SDK. Look to:

PXCV_DrawPageToDIBSection()

- and then you may use any third-party library like GDI+ or DirectWrite to merge all images into one multipaged TIFF...

The Viewer Simple SDK is here:
https://www.pdf-xchange.com/product ... le-dll-sdk
https://www.pdf-xchange.com/product ... ge-pro-sdk

If you used the our PRO-SDK the you may use our Image X-Change SDK to make TIFF from rasterized pdf-pages.
Maybe by using your virtual print driver or dll...
It is possible to use our virtual printer:
https://www.pdf-xchange.com/product ... change-sdk
also it contains API for developers.

But I'm not sure that getting TIFF through printer will be faster than direct rendering..

HTH
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.