Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.1
-
Fix Version/s: 4.1
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
Description
The following PDF files are correctly converted to images. Gradients, lines, and image borders are not converted correctly. Here is a description of each issue per test PDF:
File1.pdf
* Entire chart is missing
File2.pdf
* Missing horizontal lines
* Blue / white gradient is not placed exactly
* Black / white gradient is too subtle
File 3.pdf
* Missing horizontal lines
* Background looks very different
File 4.pdf
* Missing a connecting line for white dots
* Missing red border for green dots
* Background looks a bit different
File 5.pdf
* Missing horizontal lines
* Missing border on pink (one side) and green (all sides) bars
* Missing border (one side) on white label
File1.pdf
* Entire chart is missing
File2.pdf
* Missing horizontal lines
* Blue / white gradient is not placed exactly
* Black / white gradient is too subtle
File 3.pdf
* Missing horizontal lines
* Background looks very different
File 4.pdf
* Missing a connecting line for white dots
* Missing red border for green dots
* Background looks a bit different
File 5.pdf
* Missing horizontal lines
* Missing border on pink (one side) and green (all sides) bars
* Missing border (one side) on white label
Activity
Tyler Johnson
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [5007000000C37Of] |
Tyler Johnson
made changes -
Attachment | 9162_TestFiles.zip [ 12372 ] |
Patrick Corless
made changes -
Fix Version/s | 4.0.2 [ 10234 ] |
Patrick Corless
made changes -
Fix Version/s | 4.1 [ 10227 ] | |
Fix Version/s | 4.0.2 [ 10234 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21726 | Fri Jun 11 09:00:52 MDT 2010 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21728 | Fri Jun 11 09:35:18 MDT 2010 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ShadingType2Pattern.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21729 | Fri Jun 11 09:36:54 MDT 2010 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ShadingType3Pattern.java
|
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
File1.pdf
The PDF specifies a linear gradient that has the same start and end point which can't be handle by the batik library. Updated the code to detect the same start end point and shift the end point slightly so we can still paint with the gradient.
File2.pdf
Bug in our content parser where we where applying the fill gradient to the stroking operations. Looks more like a copy past error. The gradient colour issue was do to the fact that we only sampled for three colour points on the gradient. I changed to the mid point logic to calculate the equation of the line and thus we can calculate any number of points along gradient line. 10 sample points seems to be a nice sample size to get the correct gradient contrast as well as to be do computationally expensive to draw.
File 3.pdf
Same stroking issue. Updated how we calculate the radial gradient dimension which fixes the how the background look.
File 4.pdf
Stroking issue and radial paint issue.
File 5.pdf
Stroking issue.
So all and all the PDF in question look as they should. Will check in the code and close the issue.