[jira] [Updated] (PDFBOX-2042) ColorSpace without Range

2014-04-24 Thread Juraj Lonc (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juraj Lonc updated PDFBOX-2042:
---

Attachment: ModifyTest.java

Here is the sample code.
Actually I do not need to modify content of page. Problem is caused just by 
calling pdResources.getColorSpaces(); and then saving document.

 ColorSpace without Range
 

 Key: PDFBOX-2042
 URL: https://issues.apache.org/jira/browse/PDFBOX-2042
 Project: PDFBox
  Issue Type: Bug
  Components: PDModel
Affects Versions: 2.0.0
Reporter: Juraj Lonc
 Attachments: ModifyTest.java, pdfbox18.pdf, pdfbox20.pdf


 I have PDF document where I am modifying PDPage content stream.
 Saved document is invalid (Adobe reader complains about it).
 I have narrowed it down to ColorSpace. 
 Original document has colorspace:
 /ColorSpace 
 /Cs6 [/ICCBased 
 /Alternate /DeviceRGB
 /Filter /FlateDecode
 /Length 2597
 /N 3
 ]
 Modified document has colorspace:
 /ColorSpace 
 /Cs6 [/ICCBased 
 /Alternate /DeviceRGB
 /Filter /FlateDecode
 /Length 2597
 /N 3
 /Range []
 ]
 When I manually remove /Range [] from PDF then Adobe reader opens it 
 without an error.
 Obviously that range is added by calling PDICCBased.getRangeArray(0) 
 somewhere.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (PDFBOX-2042) ColorSpace without Range

2014-04-23 Thread Juraj Lonc (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juraj Lonc updated PDFBOX-2042:
---

Attachment: pdfbox18.pdf

Original (working) file.

 ColorSpace without Range
 

 Key: PDFBOX-2042
 URL: https://issues.apache.org/jira/browse/PDFBOX-2042
 Project: PDFBox
  Issue Type: Bug
  Components: PDModel
Affects Versions: 2.0.0
Reporter: Juraj Lonc
 Attachments: pdfbox18.pdf


 I have PDF document where I am modifying PDPage content stream.
 Saved document is invalid (Adobe reader complains about it).
 I have narrowed it down to ColorSpace. 
 Original document has colorspace:
 /ColorSpace 
 /Cs6 [/ICCBased 
 /Alternate /DeviceRGB
 /Filter /FlateDecode
 /Length 2597
 /N 3
 ]
 Modified document has colorspace:
 /ColorSpace 
 /Cs6 [/ICCBased 
 /Alternate /DeviceRGB
 /Filter /FlateDecode
 /Length 2597
 /N 3
 /Range []
 ]
 When I manually remove /Range [] from PDF then Adobe reader opens it 
 without an error.
 Obviously that range is added by calling PDICCBased.getRangeArray(0) 
 somewhere.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (PDFBOX-2042) ColorSpace without Range

2014-04-23 Thread Juraj Lonc (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juraj Lonc updated PDFBOX-2042:
---

Attachment: pdfbox20.pdf

Modified file in pdfbox 2.0.0 (error in Adobe Reader)

 ColorSpace without Range
 

 Key: PDFBOX-2042
 URL: https://issues.apache.org/jira/browse/PDFBOX-2042
 Project: PDFBox
  Issue Type: Bug
  Components: PDModel
Affects Versions: 2.0.0
Reporter: Juraj Lonc
 Attachments: pdfbox18.pdf, pdfbox20.pdf


 I have PDF document where I am modifying PDPage content stream.
 Saved document is invalid (Adobe reader complains about it).
 I have narrowed it down to ColorSpace. 
 Original document has colorspace:
 /ColorSpace 
 /Cs6 [/ICCBased 
 /Alternate /DeviceRGB
 /Filter /FlateDecode
 /Length 2597
 /N 3
 ]
 Modified document has colorspace:
 /ColorSpace 
 /Cs6 [/ICCBased 
 /Alternate /DeviceRGB
 /Filter /FlateDecode
 /Length 2597
 /N 3
 /Range []
 ]
 When I manually remove /Range [] from PDF then Adobe reader opens it 
 without an error.
 Obviously that range is added by calling PDICCBased.getRangeArray(0) 
 somewhere.



--
This message was sent by Atlassian JIRA
(v6.2#6252)