[jira] [Commented] (PDFBOX-4784) Possibility to provide the SecureRandom to SecurityHandler

2020-05-14 Thread Michael Klink (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17107545#comment-17107545
 ] 

Michael Klink commented on PDFBOX-4784:
---

[~lehmi] eSignature DSS does not sign like it's done in the CreateSignature 
example.

eSignature DSS during signing adds the extra objects (signature field, field 
value, ...) for the signature *twice* to the same base PDF; the first time to 
calculate the hash to sign, the second time to inject the signature container 
generated into that prepared PDF. DSS does so twice because they don't want to 
keep additional intermediary data like the PDF prepared with those extra 
objects.

Usually this presents no problem, both versions end up identical, but in case 
of AES encryption there are random numbers used to initialize the encryption of 
each string and stream, so the first and second version of the prepared PDF 
differ in their serialized, encrypted form. Thus, the hash value determined for 
the first version differs from the hash of the second version but gets a 
signature container based on the first hash. Thus, the generated signature is 
invalid.

To get around this, they would like to have an option to provide identically 
initialized SecureRandoms for both versions to make sure the same random 
numbers are used in both runs.

As PDFs often are encrypted using a default password, simply to restrict 
permissions, this is not a too seldom case.

> Possibility to provide the SecureRandom to SecurityHandler
> --
>
> Key: PDFBOX-4784
> URL: https://issues.apache.org/jira/browse/PDFBOX-4784
> Project: PDFBox
>  Issue Type: Improvement
>Reporter: Pierrick Vandenbroucke
>Priority: Major
>
> In DSS, we build electronic signatures with two stateless operations 
> (computation of the data to be signed and incorporation of the signature 
> value). Currently, the signature creation fails with encrypted documents 
> (AES) due to the Initialization Vector generations which produce different 
> values at each call.
> We would need a way to "stabilize" this part. We discussed about that on our 
> [issue tracker|https://ec.europa.eu/cefdigital/tracker/browse/DSS-1962] and 
> the idea would be to provide a custom instance of the SecureRandom to the 
> [SecurityHandler|https://github.com/apache/pdfbox/blob/2.0.19/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java#L381].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-4834) Wrong read characters for Hindi conjuncts

2020-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4834:

Component/s: (was: PDModel)
 (was: Parsing)
 Text extraction

> Wrong read characters for Hindi conjuncts
> -
>
> Key: PDFBOX-4834
> URL: https://issues.apache.org/jira/browse/PDFBOX-4834
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.19
> Environment: Windows 10, Java 9.
>Reporter: Hesham
>Priority: Minor
> Attachments: PDFBOX-4834-Hindi.pdf
>
>
> When reading this Hindi PDF book using PDFBox 2.0.19:
> [https://dl.dropboxusercontent.com/s/laixlb5omvjqr7y/Hindi%20Book.pdf?dl=0]
>  
> It reads it with some wrong characters for conjuncts as it appears in this 
> file:
> [https://dl.dropboxusercontent.com/s/efyxz2eg37gvn4c/Text%20read%20by%20PDFBox%202.0.19.txt?dl=0]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-4834) Wrong read characters for Hindi conjuncts

2020-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4834:

Attachment: PDFBOX-4834-Hindi.pdf

> Wrong read characters for Hindi conjuncts
> -
>
> Key: PDFBOX-4834
> URL: https://issues.apache.org/jira/browse/PDFBOX-4834
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing, PDModel
>Affects Versions: 2.0.19
> Environment: Windows 10, Java 9.
>Reporter: Hesham
>Priority: Minor
> Attachments: PDFBOX-4834-Hindi.pdf
>
>
> When reading this Hindi PDF book using PDFBox 2.0.19:
> [https://dl.dropboxusercontent.com/s/laixlb5omvjqr7y/Hindi%20Book.pdf?dl=0]
>  
> It reads it with some wrong characters for conjuncts as it appears in this 
> file:
> [https://dl.dropboxusercontent.com/s/efyxz2eg37gvn4c/Text%20read%20by%20PDFBox%202.0.19.txt?dl=0]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Resolved] (PDFBOX-4817) Generated XMP Metadata with other XSLT processor are XML invalid

2020-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr resolved PDFBOX-4817.
-
Resolution: Fixed

> Generated XMP Metadata with other XSLT processor are XML invalid
> 
>
> Key: PDFBOX-4817
> URL: https://issues.apache.org/jira/browse/PDFBOX-4817
> Project: PDFBox
>  Issue Type: Bug
>  Components: XmpBox
>Affects Versions: 2.0.19
>Reporter: Miroslav Holubec
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
>
> In our system I cannot affect javax.xml.transform.TransformerFactory 
> property, it is per default set to 
> org.apache.xalan.processor.TransformerFactoryImpl (Xalan v2.7.2).
> When I generate XMP metadata DublinCoreSchema with title, I will get 
> following piece of XML:
> {noformat}
> http://purl.org/dc/elements/1.1/; rdf:about="">
>   
>
>  some title
>
>   
> 
> {noformat}
> Problem is, that before _lang_ attribute is _xml:_ attribute prefix missing, 
> and then is XML invalid as per specification. With 
> org.apache.xalan.xsltc.trax.TransformerFactoryImpl is everything OK.
> Solution to the problem will be providing DocumentBuilderFactory and 
> TransformerFactory from outside via constructor.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Reopened] (PDFBOX-4817) Generated XMP Metadata with other XSLT processor are XML invalid

2020-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr reopened PDFBOX-4817:
-

> Generated XMP Metadata with other XSLT processor are XML invalid
> 
>
> Key: PDFBOX-4817
> URL: https://issues.apache.org/jira/browse/PDFBOX-4817
> Project: PDFBox
>  Issue Type: Bug
>  Components: XmpBox
>Affects Versions: 2.0.19
>Reporter: Miroslav Holubec
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
>
> In our system I cannot affect javax.xml.transform.TransformerFactory 
> property, it is per default set to 
> org.apache.xalan.processor.TransformerFactoryImpl (Xalan v2.7.2).
> When I generate XMP metadata DublinCoreSchema with title, I will get 
> following piece of XML:
> {noformat}
> http://purl.org/dc/elements/1.1/; rdf:about="">
>   
>
>  some title
>
>   
> 
> {noformat}
> Problem is, that before _lang_ attribute is _xml:_ attribute prefix missing, 
> and then is XML invalid as per specification. With 
> org.apache.xalan.xsltc.trax.TransformerFactoryImpl is everything OK.
> Solution to the problem will be providing DocumentBuilderFactory and 
> TransformerFactory from outside via constructor.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4817) Generated XMP Metadata with other XSLT processor are XML invalid

2020-05-14 Thread Miroslav Holubec (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17107240#comment-17107240
 ] 

Miroslav Holubec commented on PDFBOX-4817:
--

perfect, thank you!

> Generated XMP Metadata with other XSLT processor are XML invalid
> 
>
> Key: PDFBOX-4817
> URL: https://issues.apache.org/jira/browse/PDFBOX-4817
> Project: PDFBox
>  Issue Type: Bug
>  Components: XmpBox
>Affects Versions: 2.0.19
>Reporter: Miroslav Holubec
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
>
> In our system I cannot affect javax.xml.transform.TransformerFactory 
> property, it is per default set to 
> org.apache.xalan.processor.TransformerFactoryImpl (Xalan v2.7.2).
> When I generate XMP metadata DublinCoreSchema with title, I will get 
> following piece of XML:
> {noformat}
> http://purl.org/dc/elements/1.1/; rdf:about="">
>   
>
>  some title
>
>   
> 
> {noformat}
> Problem is, that before _lang_ attribute is _xml:_ attribute prefix missing, 
> and then is XML invalid as per specification. With 
> org.apache.xalan.xsltc.trax.TransformerFactoryImpl is everything OK.
> Solution to the problem will be providing DocumentBuilderFactory and 
> TransformerFactory from outside via constructor.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Closed] (PDFBOX-4817) Generated XMP Metadata with other XSLT processor are XML invalid

2020-05-14 Thread Miroslav Holubec (Jira)


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

Miroslav Holubec closed PDFBOX-4817.

Resolution: Fixed

> Generated XMP Metadata with other XSLT processor are XML invalid
> 
>
> Key: PDFBOX-4817
> URL: https://issues.apache.org/jira/browse/PDFBOX-4817
> Project: PDFBox
>  Issue Type: Bug
>  Components: XmpBox
>Affects Versions: 2.0.19
>Reporter: Miroslav Holubec
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
>
> In our system I cannot affect javax.xml.transform.TransformerFactory 
> property, it is per default set to 
> org.apache.xalan.processor.TransformerFactoryImpl (Xalan v2.7.2).
> When I generate XMP metadata DublinCoreSchema with title, I will get 
> following piece of XML:
> {noformat}
> http://purl.org/dc/elements/1.1/; rdf:about="">
>   
>
>  some title
>
>   
> 
> {noformat}
> Problem is, that before _lang_ attribute is _xml:_ attribute prefix missing, 
> and then is XML invalid as per specification. With 
> org.apache.xalan.xsltc.trax.TransformerFactoryImpl is everything OK.
> Solution to the problem will be providing DocumentBuilderFactory and 
> TransformerFactory from outside via constructor.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-4834) Wrong read characters for Hindi conjuncts

2020-05-14 Thread Hesham (Jira)


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

Hesham updated PDFBOX-4834:
---
Priority: Minor  (was: Major)

> Wrong read characters for Hindi conjuncts
> -
>
> Key: PDFBOX-4834
> URL: https://issues.apache.org/jira/browse/PDFBOX-4834
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing, PDModel
>Affects Versions: 2.0.19
> Environment: Windows 10, Java 9.
>Reporter: Hesham
>Priority: Minor
>
> When reading this Hindi PDF book using PDFBox 2.0.19:
> [https://dl.dropboxusercontent.com/s/laixlb5omvjqr7y/Hindi%20Book.pdf?dl=0]
>  
> It reads it with some wrong characters for conjuncts as it appears in this 
> file:
> [https://dl.dropboxusercontent.com/s/efyxz2eg37gvn4c/Text%20read%20by%20PDFBox%202.0.19.txt?dl=0]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Created] (PDFBOX-4834) Wrong read characters for Hindi conjuncts

2020-05-14 Thread Hesham (Jira)
Hesham created PDFBOX-4834:
--

 Summary: Wrong read characters for Hindi conjuncts
 Key: PDFBOX-4834
 URL: https://issues.apache.org/jira/browse/PDFBOX-4834
 Project: PDFBox
  Issue Type: Bug
  Components: Parsing, PDModel
Affects Versions: 2.0.19
 Environment: Windows 10, Java 9.
Reporter: Hesham


When reading this Hindi PDF book using PDFBox 2.0.19:

[https://dl.dropboxusercontent.com/s/laixlb5omvjqr7y/Hindi%20Book.pdf?dl=0]

 

It reads it with some wrong characters for conjuncts as it appears in this file:

[https://dl.dropboxusercontent.com/s/efyxz2eg37gvn4c/Text%20read%20by%20PDFBox%202.0.19.txt?dl=0]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Resolved] (PDFBOX-4833) PDColorSpace#create IOException, expected a name or array but got COSDictionary

2020-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr resolved PDFBOX-4833.
-
Resolution: Fixed

> PDColorSpace#create IOException, expected a name or array but got 
> COSDictionary
> ---
>
> Key: PDFBOX-4833
> URL: https://issues.apache.org/jira/browse/PDFBOX-4833
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.19
> Environment: openjdk version "1.8.0_252", pdfbox-2.0.19
>Reporter: krishna prasad
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: 13052020-135217676-1029.pdf, screenshot-1.png
>
>
> When ever i am try to convert pdf to images. I am getting the followed 
> exception. how to get rid of it.
>  
> Stack trace:
>  
> Exception in thread "main" java.io.IOException: Expected a name or array but 
> got: COSDictionary\{COSName{ColorSpace}:COSName\{DeviceRGB};}
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
>  at 
> org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
>  at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4833) PDColorSpace#create IOException, expected a name or array but got COSDictionary

2020-05-14 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17106972#comment-17106972
 ] 

Tilman Hausherr commented on PDFBOX-4833:
-

A snapshot will be available within an hour here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.20-SNAPSHOT/

If this is a PDF you created, then you should forward this issue to the 
software vendor that created it.

> PDColorSpace#create IOException, expected a name or array but got 
> COSDictionary
> ---
>
> Key: PDFBOX-4833
> URL: https://issues.apache.org/jira/browse/PDFBOX-4833
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.19
> Environment: openjdk version "1.8.0_252", pdfbox-2.0.19
>Reporter: krishna prasad
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: 13052020-135217676-1029.pdf, screenshot-1.png
>
>
> When ever i am try to convert pdf to images. I am getting the followed 
> exception. how to get rid of it.
>  
> Stack trace:
>  
> Exception in thread "main" java.io.IOException: Expected a name or array but 
> got: COSDictionary\{COSName{ColorSpace}:COSName\{DeviceRGB};}
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
>  at 
> org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
>  at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Issue Comment Deleted] (PDFBOX-4833) PDColorSpace#create IOException, expected a name or array but got COSDictionary

2020-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4833:

Comment: was deleted

(was: We can fix that nevertheless, will do it later.)

> PDColorSpace#create IOException, expected a name or array but got 
> COSDictionary
> ---
>
> Key: PDFBOX-4833
> URL: https://issues.apache.org/jira/browse/PDFBOX-4833
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.19
> Environment: openjdk version "1.8.0_252", pdfbox-2.0.19
>Reporter: krishna prasad
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: 13052020-135217676-1029.pdf, screenshot-1.png
>
>
> When ever i am try to convert pdf to images. I am getting the followed 
> exception. how to get rid of it.
>  
> Stack trace:
>  
> Exception in thread "main" java.io.IOException: Expected a name or array but 
> got: COSDictionary\{COSName{ColorSpace}:COSName\{DeviceRGB};}
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
>  at 
> org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
>  at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4833) PDColorSpace#create IOException, expected a name or array but got COSDictionary

2020-05-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17106963#comment-17106963
 ] 

ASF subversion and git services commented on PDFBOX-4833:
-

Commit 1877721 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1877721 ]

PDFBOX-4833: support incorrect ColorSpace dictionary with /ColorSpace entry

> PDColorSpace#create IOException, expected a name or array but got 
> COSDictionary
> ---
>
> Key: PDFBOX-4833
> URL: https://issues.apache.org/jira/browse/PDFBOX-4833
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.19
> Environment: openjdk version "1.8.0_252", pdfbox-2.0.19
>Reporter: krishna prasad
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: 13052020-135217676-1029.pdf, screenshot-1.png
>
>
> When ever i am try to convert pdf to images. I am getting the followed 
> exception. how to get rid of it.
>  
> Stack trace:
>  
> Exception in thread "main" java.io.IOException: Expected a name or array but 
> got: COSDictionary\{COSName{ColorSpace}:COSName\{DeviceRGB};}
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
>  at 
> org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
>  at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4833) PDColorSpace#create IOException, expected a name or array but got COSDictionary

2020-05-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17106964#comment-17106964
 ] 

ASF subversion and git services commented on PDFBOX-4833:
-

Commit 1877722 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1877722 ]

PDFBOX-4833: support incorrect ColorSpace dictionary with /ColorSpace entry

> PDColorSpace#create IOException, expected a name or array but got 
> COSDictionary
> ---
>
> Key: PDFBOX-4833
> URL: https://issues.apache.org/jira/browse/PDFBOX-4833
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.19
> Environment: openjdk version "1.8.0_252", pdfbox-2.0.19
>Reporter: krishna prasad
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: 13052020-135217676-1029.pdf, screenshot-1.png
>
>
> When ever i am try to convert pdf to images. I am getting the followed 
> exception. how to get rid of it.
>  
> Stack trace:
>  
> Exception in thread "main" java.io.IOException: Expected a name or array but 
> got: COSDictionary\{COSName{ColorSpace}:COSName\{DeviceRGB};}
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
>  at 
> org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
>  at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4833) PDColorSpace#create IOException, expected a name or array but got COSDictionary

2020-05-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17106962#comment-17106962
 ] 

ASF subversion and git services commented on PDFBOX-4833:
-

Commit 1877720 from Tilman Hausherr in branch 'pdfbox/branches/issue45'
[ https://svn.apache.org/r1877720 ]

PDFBOX-4833: support incorrect ColorSpace dictionary with /ColorSpace entry

> PDColorSpace#create IOException, expected a name or array but got 
> COSDictionary
> ---
>
> Key: PDFBOX-4833
> URL: https://issues.apache.org/jira/browse/PDFBOX-4833
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.19
> Environment: openjdk version "1.8.0_252", pdfbox-2.0.19
>Reporter: krishna prasad
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: 13052020-135217676-1029.pdf, screenshot-1.png
>
>
> When ever i am try to convert pdf to images. I am getting the followed 
> exception. how to get rid of it.
>  
> Stack trace:
>  
> Exception in thread "main" java.io.IOException: Expected a name or array but 
> got: COSDictionary\{COSName{ColorSpace}:COSName\{DeviceRGB};}
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
>  at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
>  at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
>  at 
> org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
>  at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org