[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] [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)
[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/24/14 6:29 AM: -- I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? I 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? was (Author: tilman): I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? I don't have Ubuntu, so someone else will have to answer that. 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/24/14 8:35 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? was (Author: tilman): I didn't mean to remove %%EOF, just everything after it. Could it be your Ubuntu disk is full? I 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? 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=13978953#comment-13978953 ] Tilman Hausherr edited comment on PDFBOX-2041 at 4/24/14 6:48 PM: -- 1. The PDF file is corrupt. A look at it with NOTEPAD++ shows %%EOF and then trash characters. Deleting all after that one makes the file much smaller, 518KB instead of 4,85MB. How did you get that file?! 2. I am able to render it. Your jpg file looks like it was cut off at some time. 3. The 2.0 version isn't able to open it with the non sequential parser, the sequential parser can open it. 4. The 1.8 version renders it fine, the 2.0 version has many glyphs missing, maybe a duplicate of PDFBOX-2037. I was able to render it with a modified 2.0 version that I use for myself. I will handle that problem in PDFBOX-2044. was (Author: tilman): 1. The PDF file is corrupt. A look at it with NOTEPAD++ shows %%EOF and then trash characters. Deleting all after that one makes the file much smaller, 518KB instead of 4,85MB. How did you get that file?! 2. I am able to render it. Your jpg file looks like it was cut off at some time. 3. The 2.0 version isn't able to open it with the non sequential parser, the sequential parser can open it. 4. The 1.8 version renders it fine, the 2.0 version has many glyphs missing, maybe a duplicate of PDFBOX-2037. I was able to render it with a modified 2.0 version that I use for myself. 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/24/14 10:57 PM: --- 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 ? 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? 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=13978953#comment-13978953 ] Tilman Hausherr edited comment on PDFBOX-2041 at 4/23/14 9:49 PM: -- 1. The PDF file is corrupt. A look at it with NOTEPAD++ shows %%EOF and then trash characters. Deleting all after that one makes the file much smaller, 518KB instead of 4,85MB. How did you get that file?! 2. I am able to render it. Your jpg file looks like it was cut off at some time. 3. The 2.0 version isn't able to open it with the non sequential parser, the sequential parser can open it. 4. The 1.8 version renders it fine, the 2.0 version has many glyphs missing, maybe a duplicate of PDFBOX-2037. I was able to render it with a modified 2.0 version that I use for myself. 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)