PDF to TIFF conversion

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

PDF to TIFF conversion

Post by oakleaf software ltd »

Hello,
I am extremely impressed with your SDK and is very close to what we need
Our program needs to convert PDF documents into B/W 1Bit, Dithered TIFF images. We currently use Ghostscript but are evaluating your SDK. So far the process has been really smooth but there are a few differences between the results.
Your SDK result is the left image and Ghostscript is on the right. These are highly magnified as our users need to zoom right in to work on detail of floor plans
Ghostscript seems to produce slightly less ragged results when dithering.
I am using a variation of your example DrawPageToIStream
crp.Flags = pxvrpf_Dither | pxvrpf_BlackAndWhite;
crp.RenderTarget = pxvrm_Printing;
dip.ImageFormat = IMGF_TIFF;
dip.Flags = 0; // reserved
dip.Bpp = 1;
hr = PXCV_DrawPageToIStream(curDoc, page_num, &crp, RGB(255, 255, 255) | 0xFF000000, &dip, pImage);


Are there any other settings I can use to match the output with Ghostscript?
PDF-To-TIFF.jpg
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PDF to TIFF conversion

Post by Ivan - Tracker Software »

Can you provide a source PDF file?
We would like to analyze why that happens and maybe provide some recommendations.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

Re: PDF to TIFF conversion

Post by oakleaf software ltd »

Thanks for the reply.
the atached rar file, contain the original PDF and the TIF created by Ghostscript
Compare this to the tif generated by your SDK.
When you zoom in Ghostscript's has fewer artifacts and looks a bit cleaner.

The differences appear very minor but they will make a difference because of the way we use them
Thanks again
Phil
A-114 14th Floor Plan.rar
(748.78 KiB) Downloaded 61 times
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PDF to TIFF conversion

Post by Ivan - Tracker Software »

Looks like we have some issue with stroke adjusting on this file.
We will check why it happens and will definitely fix that asap.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

Re: PDF to TIFF conversion

Post by oakleaf software ltd »

Thanks the reply, that is very encouraging as, apart from this issue, your SDK is perfectly suited for our requirements.

If you need any more examples, I can supply - just let me know
Regards
Phil
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

PDF to TIFF conversion

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

Re: PDF to TIFF conversion

Post by oakleaf software ltd »

do you have any idea of time scales for looking into this?

THanks again
Phil
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PDF to TIFF conversion

Post by Ivan - Tracker Software »

Some improvements with stroke adjustment should be available in the new build that should be released next week if everything goes well.
But there still will be some artifacts dithering artifacts, unfortunately. We will continue to work on improvements, but I cannot promise any timeline here.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

Re: PDF to TIFF conversion

Post by oakleaf software ltd »

thanks for the update
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

PDF to TIFF conversion

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

Re: PDF to TIFF conversion

Post by oakleaf software ltd »

does the 9.4.364.0 release 27-09-22 cover this issue

Thanks
Phil
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

Re: PDF to TIFF conversion

Post by TrackerSupp-Daniel »

Hello, oakleaf software ltd

It should have made some improvements, but this will not be a "one-and-done" resolution process, unfortunately. As Ivan said before,
Ivan - Tracker Software wrote: Wed Sep 21, 2022 6:04 pm there still will be some artifacts dithering artifacts, unfortunately. We will continue to work on improvements, but I cannot promise any timeline here.
Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
oakleaf software ltd
User
Posts: 7
Joined: Tue Oct 02, 2012 9:09 am

Re: PDF to TIFF conversion

Post by oakleaf software ltd »

thanks, I'll try it out and let you know
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

PDF to TIFF conversion

Post by Tracker Supp-Stefan »

:)
Post Reply