Mask Rendering Bug Report

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, 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
monolith
User
Posts: 4
Joined: Tue Nov 22, 2016 4:21 pm

Mask Rendering Bug Report

Post by monolith »

Your renderer has a bug with color-key masks and /Decode arrays: the PDF 1.7 standard pg 351, Section 4.8 states:
Each integer must be in the range 0 to 2^BitsPerComponent − 1,
representing color values before decoding with the Decode array.

An image sample is masked (not painted) if all of its color components
BEFORE decoding, c1 … cn , fall within the specified ranges
I've attached a test file that shows you are instead masking AFTER decoding each sample when /Mask [0 0] is specified (at least in the simple case of a 1 bpp bitmap). Not sure what is happening when /Mask [1 1] is specified as also incorrect.

Confirmed as a bug in PDFXCView build 318.1 with Adobe Reader and GSview on Windows XP SP3.
Attachments
masktest.zip
Draws 8x8 1bpp bitmap with/without color-keying and decode invert.
(906 Bytes) Downloaded 110 times
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Mask Rendering Bug Report

Post by Will - Tracker Supp »

Hi monolith,

Thanks for the post - Please try the Editor, as it has replaced the Viewer and uses a different rendering engine:
https://www.pdf-xchange.com/downloads

If you still see the issue in the Editor, let us know.

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
monolith
User
Posts: 4
Joined: Tue Nov 22, 2016 4:21 pm

Re: Mask Rendering Bug Report

Post by monolith »

Thanks for the reply, I'd assumed as both were build 318.1 they used the same renderer codebase.

This is useful to know as the editor does not exhibit this masking bug :)

regards.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Mask Rendering Bug Report

Post by Will - Tracker Supp »

Hi monolith,

Not a problem! The Viewer build number is still being updated and occasional changes are still being made (critical issues only), but it wasn't possible to fix some problems with the Viewer's rendering and printing engines without totally re-writing them, which is what was done for the Editor.

Glad to hear that's solved the issue :)

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Post Reply