[jira] [Comment Edited] (PDFBOX-2041) Convert PDF to Image (Strange Color)
[ https://issues.apache.org/jira/browse/PDFBOX-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13979239#comment-13979239 ] Tilman Hausherr edited comment on PDFBOX-2041 at 4/25/14 7:12 AM: -- I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? If not - I don't have Ubuntu, so someone else will have to answer that. Also try using the PDFBox app: java -jar pdfbox-app-1.8.4-SNAPSHOT.jar PDFReader yourfile.pdf does it display correctly or not? And what java version are you using? If it isn't the latest, what happens if you update to Java SE 7 Update 55 ? What happens if you convert to PNG instead of JPG? was (Author: tilman): I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? If not - I don't have Ubuntu, so someone else will have to answer that. Also try using the PDFBox app: java -jar pdfbox-app-1.8.4-SNAPSHOT.jar PDFReader yourfile.pdf does it display correctly or not? And what java version are you using? If it isn't the latest, what happens if you update to Java SE 7 Update 55 ? What happens if you convert not to JPEG, but to PNG? Convert PDF to Image (Strange Color) Key: PDFBOX-2041 URL: https://issues.apache.org/jira/browse/PDFBOX-2041 Project: PDFBox Issue Type: Bug Components: PDModel Affects Versions: 1.8.4 Environment: Java(1.7.0_45), OS (Ubuntu) Reporter: ahfei Attachments: PDFBOX-2041.pdf, PDFBOX-2041.pdf-1-bad.tif, pdfbox-2041.pdf-1-good.png Using PDFBox, tried to convert PDF to Image file (case1.pdf, case1.jpg) Below is code i'm using : BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB, 200); ImageIOUtil.writeImage(image, jpg, imagePath, BufferedImage.TYPE_INT_RGB, 200); After convert, this image isn't look like pdf. Half page of it become blue and black color. Attached images PDF : https://www.dropbox.com/sh/jevegc8bh09km1o/5XkVwPUxri -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Comment Edited] (PDFBOX-2041) Convert PDF to Image (Strange Color)
[ https://issues.apache.org/jira/browse/PDFBOX-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13979239#comment-13979239 ] Tilman Hausherr edited comment on PDFBOX-2041 at 4/25/14 7:12 AM: -- I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? If not - I don't have Ubuntu, so someone else will have to answer that. Also try using the PDFBox app: java -jar pdfbox-app-1.8.4-SNAPSHOT.jar PDFReader yourfile.pdf does it display correctly or not? And what java version are you using? If it isn't the latest, what happens if you update to Java SE 7 Update 55 ? What happens if you convert not to JPEG, but to PNG? was (Author: tilman): I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? If not - I don't have Ubuntu, so someone else will have to answer that. Also try using the PDFBox app: java -jar pdfbox-app-1.8.4-SNAPSHOT.jar PDFReader yourfile.pdf does it display correctly or not? And what java version are you using? If it isn't the latest, what happens if you update to Java SE 7 Update 55 ? Convert PDF to Image (Strange Color) Key: PDFBOX-2041 URL: https://issues.apache.org/jira/browse/PDFBOX-2041 Project: PDFBox Issue Type: Bug Components: PDModel Affects Versions: 1.8.4 Environment: Java(1.7.0_45), OS (Ubuntu) Reporter: ahfei Attachments: PDFBOX-2041.pdf, PDFBOX-2041.pdf-1-bad.tif, pdfbox-2041.pdf-1-good.png Using PDFBox, tried to convert PDF to Image file (case1.pdf, case1.jpg) Below is code i'm using : BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB, 200); ImageIOUtil.writeImage(image, jpg, imagePath, BufferedImage.TYPE_INT_RGB, 200); After convert, this image isn't look like pdf. Half page of it become blue and black color. Attached images PDF : https://www.dropbox.com/sh/jevegc8bh09km1o/5XkVwPUxri -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (PDFBOX-2041) Convert PDF to Image (Strange Color)
[ https://issues.apache.org/jira/browse/PDFBOX-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13980771#comment-13980771 ] ahfei commented on PDFBOX-2041: --- Hi Tilman Hausherr, Thanks for your reply. After try all your suggestion, now it working fine when i change code convert PDF to PNG. (working fine in OS - Window Linux) If using convert PDF to JPG (Working fine in OS - Window , some pdfs will have some color problem in Linux ) Convert PDF to Image (Strange Color) Key: PDFBOX-2041 URL: https://issues.apache.org/jira/browse/PDFBOX-2041 Project: PDFBox Issue Type: Bug Components: PDModel Affects Versions: 1.8.4 Environment: Java(1.7.0_45), OS (Ubuntu) Reporter: ahfei Attachments: PDFBOX-2041.pdf, PDFBOX-2041.pdf-1-bad.tif, pdfbox-2041.pdf-1-good.png Using PDFBox, tried to convert PDF to Image file (case1.pdf, case1.jpg) Below is code i'm using : BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB, 200); ImageIOUtil.writeImage(image, jpg, imagePath, BufferedImage.TYPE_INT_RGB, 200); After convert, this image isn't look like pdf. Half page of it become blue and black color. Attached images PDF : https://www.dropbox.com/sh/jevegc8bh09km1o/5XkVwPUxri -- This message was sent by Atlassian JIRA (v6.2#6252)
Re: New PDFBox bugfix release 1.8.5
Hi Andreas, will commit them later today. BR Maruan Sahyoun Am 24.04.2014 um 11:52 schrieb Andreas Lehmkühler andr...@lehmi.de: Hi, I'm planning to cut the release at the beginning of the next week. Any objections? @Maruan What about your pending javadoc changes? Do you need more time or help? As we are not in a hurry, it wouldn't be a problem to postpone the release process for another week or two. BR Andreas Lehmkühler Andreas Lehmkuehler andr...@lehmi.de hat am 18. April 2014 um 15:36 geschrieben: Hi, it's time to cut a new bugfix release as there are a lot of fixes in our queue. Additionally I already announced a possible new release in the second quarter and people are already asking for it. ;-) WDYT? Is there anything we should wait for? Any fix only available in the trunk which should be merged into then branch as well? What about the 4 open issues [1] marked with fix for 1.8.5? BR Andreas Lehmkühler [1] http://s.apache.org/VwQ
[jira] [Comment Edited] (PDFBOX-2041) Convert PDF to Image (Strange Color)
[ https://issues.apache.org/jira/browse/PDFBOX-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13979239#comment-13979239 ] Tilman Hausherr edited comment on PDFBOX-2041 at 4/25/14 8:52 AM: -- I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? If not - I don't have Ubuntu, so someone else will have to answer that. Also try using the PDFBox app: java -jar pdfbox-app-1.8.4-SNAPSHOT.jar PDFReader yourfile.pdf does it display correctly or not? What happens if you update to Java SE 7 Update 55 ? What happens if you convert to PNG instead of JPG? was (Author: tilman): I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? If not - I don't have Ubuntu, so someone else will have to answer that. Also try using the PDFBox app: java -jar pdfbox-app-1.8.4-SNAPSHOT.jar PDFReader yourfile.pdf does it display correctly or not? And what java version are you using? If it isn't the latest, what happens if you update to Java SE 7 Update 55 ? What happens if you convert to PNG instead of JPG? Convert PDF to Image (Strange Color) Key: PDFBOX-2041 URL: https://issues.apache.org/jira/browse/PDFBOX-2041 Project: PDFBox Issue Type: Bug Components: PDModel Affects Versions: 1.8.4 Environment: Java(1.7.0_45), OS (Ubuntu) Reporter: ahfei Attachments: PDFBOX-2041.pdf, PDFBOX-2041.pdf-1-bad.tif, pdfbox-2041.pdf-1-good.png Using PDFBox, tried to convert PDF to Image file (case1.pdf, case1.jpg) Below is code i'm using : BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB, 200); ImageIOUtil.writeImage(image, jpg, imagePath, BufferedImage.TYPE_INT_RGB, 200); After convert, this image isn't look like pdf. Half page of it become blue and black color. Attached images PDF : https://www.dropbox.com/sh/jevegc8bh09km1o/5XkVwPUxri -- This message was sent by Atlassian JIRA (v6.2#6252)
Re: PDFBox build job disappears
Hi, Andreas Lehmkuehler andr...@lehmi.de hat am 18. April 2014 um 20:16 geschrieben: Hi, one of our PDFBox build jobs [1] somehow disappears. Does anyone know why? Is it just a jenkins hickup or did someone delete it accidentically? The other 2 are still available [2], [3] Sorry for the late feedback, but I guess everybody already noticed that the build reappears some time ago. The issue was an issue with a jenkins plugin. BR Andreas Lehmkühler [1] https://builds.apache.org/job/PDFBox-trunk/ [2] https://builds.apache.org/job/PDFBox%201.8.x/ [3] https://builds.apache.org/job/PDFBox-ant/ BR Andreas Lehmkühler
Re: xmpbox vs. jempbox - which is the one moving forward
Hi, Maruan Sahyoun sahy...@fileaffairs.de hat am 9. April 2014 um 15:10 geschrieben: Hi, did we make a decision about xmpbox or jempbox are the one to use for XMP metadata moving forward? There is a discussion in PDFBOX-1187 about cutting the dependency to jempbox and preflight uses xmpbox. Thanks for bringing this up again. How about the following scenario: We could alter PDMetadata as follows: - remove the import/exportXMPMetadata methods - provide new methods get/setMetadatastream to provide an Input/Outputstream to be used with your favourite XMPMetadata implementation Pros: - this would remove a in many cases not needed dependency in pdfbox - users can choose what library to use for handling XMP-Metadata, even any thirdparty lib could be used Cons: - we still have to maintain 2 XMP-libs WDYT? BR Andreas Lehmkühler
Re: xmpbox vs. jempbox - which is the one moving forward
Hi Am 25.04.2014 um 12:38 schrieb Andreas Lehmkühler andr...@lehmi.de: Hi, Maruan Sahyoun sahy...@fileaffairs.de hat am 9. April 2014 um 15:10 geschrieben: Hi, did we make a decision about xmpbox or jempbox are the one to use for XMP metadata moving forward? There is a discussion in PDFBOX-1187 about cutting the dependency to jempbox and preflight uses xmpbox. Thanks for bringing this up again. How about the following scenario: We could alter PDMetadata as follows: - remove the import/exportXMPMetadata methods - provide new methods get/setMetadatastream to provide an Input/Outputstream to be used with your favourite XMPMetadata implementation +1 for being independent. E.g. Adobe has a Java XMP lib under BSD license http://www.adobe.com/devnet/xmp/library/eula-xmp-library-java.html Pros: - this would remove a in many cases not needed dependency in pdfbox - users can choose what library to use for handling XMP-Metadata, even any thirdparty lib could be used Cons: - we still have to maintain 2 XMP-libs I’d think we should remove one of the XMP metadata libs which we can do independent of the above decision. WDYT? BR Andreas Lehmkühler
[jira] [Created] (PDFBOX-2045) Merging PDFs has no effect
Gerhard Temper created PDFBOX-2045: -- Summary: Merging PDFs has no effect Key: PDFBOX-2045 URL: https://issues.apache.org/jira/browse/PDFBOX-2045 Project: PDFBox Issue Type: Bug Components: Utilities Affects Versions: 1.8.4 Reporter: Gerhard Temper Attachments: specialpdf.pdf Merging attached PDF results in a PDF consisting only of the special PDF ignoring all other PDFs without any error. Command line to reproduce the problem: java -jar pdfbox-app-1.8.4.jar PDFMerger page1.pdf specialpdf.pdf result.pdf -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PDFBOX-2045) Merging PDFs has no effect
[ https://issues.apache.org/jira/browse/PDFBOX-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Temper updated PDFBOX-2045: --- Attachment: specialpdf.pdf Merging PDFs has no effect -- Key: PDFBOX-2045 URL: https://issues.apache.org/jira/browse/PDFBOX-2045 Project: PDFBox Issue Type: Bug Components: Utilities Affects Versions: 1.8.4 Reporter: Gerhard Temper Attachments: specialpdf.pdf Merging attached PDF results in a PDF consisting only of the special PDF ignoring all other PDFs without any error. Command line to reproduce the problem: java -jar pdfbox-app-1.8.4.jar PDFMerger page1.pdf specialpdf.pdf result.pdf -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PDFBOX-2046) [PATCH] Can't read the embedded Type1 font
[ https://issues.apache.org/jira/browse/PDFBOX-2046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon steiner updated PDFBOX-2046: -- Attachment: type1parser.patch [PATCH] Can't read the embedded Type1 font -- Key: PDFBOX-2046 URL: https://issues.apache.org/jira/browse/PDFBOX-2046 Project: PDFBox Issue Type: Bug Reporter: simon steiner Attachments: type1parser.patch java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage x.pdf SEVERE: Can't read the embedded Type1 font java.io.IOException: Found Token[kind=NAME, text=end] but expected LITERAL SEVERE: Can't read the embedded Type1 font java.io.IOException: Found Token[kind=NAME, text=currentdict] but expected LITERAL -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Created] (PDFBOX-2046) [PATCH] Can't read the embedded Type1 font
simon steiner created PDFBOX-2046: - Summary: [PATCH] Can't read the embedded Type1 font Key: PDFBOX-2046 URL: https://issues.apache.org/jira/browse/PDFBOX-2046 Project: PDFBox Issue Type: Bug Reporter: simon steiner Attachments: type1parser.patch java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage x.pdf SEVERE: Can't read the embedded Type1 font java.io.IOException: Found Token[kind=NAME, text=end] but expected LITERAL SEVERE: Can't read the embedded Type1 font java.io.IOException: Found Token[kind=NAME, text=currentdict] but expected LITERAL -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Closed] (PDFBOX-2041) Convert PDF to Image (Strange Color)
[ https://issues.apache.org/jira/browse/PDFBOX-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr closed PDFBOX-2041. --- Resolution: Cannot Reproduce This means that the problem can only be in ImageIOUtil.writeImage(). There, either in java ImageIO (then we can't fix it), or in ImageIOUtil (then try again with 1.8.5 when it is released or from the snapshot directory https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox/1.8.5-SNAPSHOT/ because I made some improvements there). However this isn't important, because using PNG is much better for images with sharp edges, and it is much smaller (my 300dpi PNG file is 10% of the size of your JPG). If all your images are drawings like that, I'd recommend not to use BufferedImage.TYPE_INT_RGB, rather use BufferedImage.TYPE_BINARY and save it as a TIFF. (The upcoming 1.8.5 version will create very small images by using CCITT G4 compression). (It might be helpful telling us what kind of application you're developing, if this info isn't confidential. If you're doing a web application, then you can't use TIFF, obviously) So I am closing this as can't reproduce, but you're welcome to reopen this issue if you need JPEG and it still doesn't work with 1.8.5 and the latest version of JDK7. I would then try to set up an Ubuntu live system to see what happens. I am also thankful that your PDF helped us find an unrelated bug :-) Convert PDF to Image (Strange Color) Key: PDFBOX-2041 URL: https://issues.apache.org/jira/browse/PDFBOX-2041 Project: PDFBox Issue Type: Bug Components: PDModel Affects Versions: 1.8.4 Environment: Java(1.7.0_45), OS (Ubuntu) Reporter: ahfei Attachments: PDFBOX-2041.pdf, PDFBOX-2041.pdf-1-bad.tif, pdfbox-2041.pdf-1-good.png Using PDFBox, tried to convert PDF to Image file (case1.pdf, case1.jpg) Below is code i'm using : BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB, 200); ImageIOUtil.writeImage(image, jpg, imagePath, BufferedImage.TYPE_INT_RGB, 200); After convert, this image isn't look like pdf. Half page of it become blue and black color. Attached images PDF : https://www.dropbox.com/sh/jevegc8bh09km1o/5XkVwPUxri -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PDFBOX-2037) Glyph in type1CFont not rendered
[ https://issues.apache.org/jira/browse/PDFBOX-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr updated PDFBOX-2037: Labels: type1 type1cfont type1font (was: type1 type1font) Glyph in type1CFont not rendered Key: PDFBOX-2037 URL: https://issues.apache.org/jira/browse/PDFBOX-2037 Project: PDFBox Issue Type: Bug Components: Rendering Affects Versions: 2.0.0 Reporter: Tilman Hausherr Labels: type1, type1cfont, type1font Attachments: pdfbox-1770.pdf-3-bad.png, pdfbox-1770.pdf-3-good.png The infinity symbol on page 3 of the file of PDFBOX-1770 is not rendered. I am attaching a bad and a good rendering. The good rendering was faked by removing the line {code} codeToName.put(key, encodingCodeToName.get(key)); {code} in Type1Glyph2D. This helps keeping a C121 in a map instead of being replaced with a y. The font involved is the KIJFMP+AdvTex2 font. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Reopened] (PDFBOX-1897) There are some errors within the source code documentation (javadocs)
[ https://issues.apache.org/jira/browse/PDFBOX-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maruan Sahyoun reopened PDFBOX-1897: Reopened because of faulty commit. Fix added in rev 1590161 There are some errors within the source code documentation (javadocs) - Key: PDFBOX-1897 URL: https://issues.apache.org/jira/browse/PDFBOX-1897 Project: PDFBox Issue Type: Improvement Components: Documentation Reporter: Maruan Sahyoun Assignee: Maruan Sahyoun Priority: Trivial Labels: documentation Fix For: 1.8.5, 2.0.0 The documentation within the sources has some errors leading to missing or incorrect information. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Resolved] (PDFBOX-1897) There are some errors within the source code documentation (javadocs)
[ https://issues.apache.org/jira/browse/PDFBOX-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maruan Sahyoun resolved PDFBOX-1897. Resolution: Fixed Setting to resolved again There are some errors within the source code documentation (javadocs) - Key: PDFBOX-1897 URL: https://issues.apache.org/jira/browse/PDFBOX-1897 Project: PDFBox Issue Type: Improvement Components: Documentation Reporter: Maruan Sahyoun Assignee: Maruan Sahyoun Priority: Trivial Labels: documentation Fix For: 1.8.5, 2.0.0 The documentation within the sources has some errors leading to missing or incorrect information. -- This message was sent by Atlassian JIRA (v6.2#6252)
Re: New PDFBox bugfix release 1.8.5
Hi Andreas, I’ve committed the changes. Fingers crossed that I did that correctly this time. BR Maruan Am 24.04.2014 um 11:52 schrieb Andreas Lehmkühler andr...@lehmi.de: Hi, I'm planning to cut the release at the beginning of the next week. Any objections? @Maruan What about your pending javadoc changes? Do you need more time or help? As we are not in a hurry, it wouldn't be a problem to postpone the release process for another week or two. BR Andreas Lehmkühler Andreas Lehmkuehler andr...@lehmi.de hat am 18. April 2014 um 15:36 geschrieben: Hi, it's time to cut a new bugfix release as there are a lot of fixes in our queue. Additionally I already announced a possible new release in the second quarter and people are already asking for it. ;-) WDYT? Is there anything we should wait for? Any fix only available in the trunk which should be merged into then branch as well? What about the 4 open issues [1] marked with fix for 1.8.5? BR Andreas Lehmkühler [1] http://s.apache.org/VwQ