You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Christoph Schmidt (JIRA)" <ji...@apache.org> on 2010/04/01 09:43:27 UTC
[jira] Created: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures) permalink
Lines not showing in PrintPDF print-out (Table borders and SVG figures) permalink
---------------------------------------------------------------------------------
Key: PDFBOX-677
URL: https://issues.apache.org/jira/browse/PDFBOX-677
Project: PDFBox
Issue Type: Bug
Affects Versions: 1.1.0
Environment: JDK 1.5.0u18 on Windows XP Professional SP3
Reporter: Christoph Schmidt
I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
tables of varying complexity and consisting of several figures created via SVG
primitives (rect, path, text) in the used stylesheet.
After generating and exporting the document to the file system, I want to print
it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
the resulting print-out lacks _all_ of the lines in the document: all table
borders (of various sizes) are missing, and all figures are missing too (a large
diagram and several small symbols within the text). All texts are printed
correctly, except for the heading of the document, which is written in a bold
and bigger font.
This problem occurs on every printer at my disposal (two physical laser printers
and one virtual pdf printer). The problem does not occur when opening and/or
printing the originally exported document via Adobe Reader - the document shows
and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
When converting the pdf with PDFBox's PDFToImage class, the problem becomes
smaller, but persists nonetheless: the resulting JPG lacks a good third of the
table borders, but shows all of the SVG-based lines correctly.
I searched the bug tracker and the mailinglist archives but could not find a
recent matching discussion or tracker item. PDFBox seems to have had problems
with table borders already (I remember reading about line styles and weights not
being rendered correctly), but all of those seem to date back to version numbers
around version 0.8.
I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
Any help would be appreciated!
Many thanks in advance and have a good day,
--Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures)
Posted by "Christoph Schmidt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Schmidt updated PDFBOX-677:
-------------------------------------
Attachment: PDFToImage-Result.jpg
PrintPDF-Result.pdf
Original.pdf
These files represent the following:
* Original.pdf is the original document exported via XSLT/FOP which shows and prints on Adobe Reader as expected.
* PrintPDF-Result.pde is a "pdf print" of the resulting print-out when piping Original.pdf through PrintPDF and shows what is actually printed of the original document.
* PDFToImage-Result.jpg is the result of piping Original.pdf through PDFToImage (which was thought to be a cross-check -- my intention is not to create an image of the pdf, I want to print the pdf directly)
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
> Attachments: Original.pdf, PDFToImage-Result.jpg, PrintPDF-Result.pdf
>
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures)
Posted by "Christoph Schmidt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876137#action_12876137 ]
Christoph Schmidt commented on PDFBOX-677:
------------------------------------------
*bump
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
> Attachments: Original.pdf, PDFBOX677-Original.ps, PDFBOX677-Original1.png, PDFToImage-Result.jpg, PrintPDF-Result.pdf
>
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures)
Posted by "Christoph Schmidt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Schmidt updated PDFBOX-677:
-------------------------------------
Summary: Lines not showing in PrintPDF print-out (Table borders and SVG figures) (was: Lines not showing in PrintPDF print-out (Table borders and SVG figures) permalink)
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures)
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853363#action_12853363 ]
Andreas Lehmkühler commented on PDFBOX-677:
-------------------------------------------
I also ran some tests on windows with jdk 1.6.0_18 and jdk1.5.0_21. The print-outs were quite perfect with both jdks.
The lines are only missing in two cases (independent from the used jdk/os):
- using the PDFReader to render the pdf (probably an issue with the reduced/to small resolution)
- using jpg as imageType when converting the pdf to an image using PDFToImage
How did you try to print the pdf? Using the PDFReader? Calling directly the print method with or without the printing dialog?
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
> Attachments: Original.pdf, PDFBOX677-Original.ps, PDFBOX677-Original1.png, PDFToImage-Result.jpg, PrintPDF-Result.pdf
>
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures)
Posted by "Christoph Schmidt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853802#action_12853802 ]
Christoph Schmidt commented on PDFBOX-677:
------------------------------------------
Thanks for testing this issue.
I invoked the PrintPDF class's main method on the exported file (just like one would from the command line).
Like this:
PrintPDF.main(new String[]{jobTitle+".pdf"});
This is not what I want to do in the long run, but for a first test, to see if the print-out is OK.
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
> Attachments: Original.pdf, PDFBOX677-Original.ps, PDFBOX677-Original1.png, PDFToImage-Result.jpg, PrintPDF-Result.pdf
>
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (PDFBOX-677) Lines not showing in
PrintPDF print-out (Table borders and SVG figures)
Posted by "Christoph Schmidt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852276#action_12852276 ]
Christoph Schmidt edited comment on PDFBOX-677 at 4/1/10 7:54 AM:
------------------------------------------------------------------
These files represent the following:
* Original.pdf is the original document exported via XSLT/FOP which shows and prints on Adobe Reader as expected.
* PrintPDF-Result.pdf is a "pdf print" of the resulting print-out when piping Original.pdf through PrintPDF and shows what is actually printed of the original document.
* PDFToImage-Result.jpg is the result of piping Original.pdf through PDFToImage (which was thought to be a cross-check -- my intention is not to create an image of the pdf, I want to print the pdf directly)
was (Author: schmiddtchen):
These files represent the following:
* Original.pdf is the original document exported via XSLT/FOP which shows and prints on Adobe Reader as expected.
* PrintPDF-Result.pde is a "pdf print" of the resulting print-out when piping Original.pdf through PrintPDF and shows what is actually printed of the original document.
* PDFToImage-Result.jpg is the result of piping Original.pdf through PDFToImage (which was thought to be a cross-check -- my intention is not to create an image of the pdf, I want to print the pdf directly)
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
> Attachments: Original.pdf, PDFToImage-Result.jpg, PrintPDF-Result.pdf
>
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-677) Lines not showing in PrintPDF
print-out (Table borders and SVG figures)
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-677:
--------------------------------------
Attachment: PDFBOX677-Original1.png
PDFBOX677-Original.ps
- PDFBOX677-Original.ps is the result of printing the file using the PDFReader in combination with the driver for my Color LJ 2550
- PDFBOX677-Original1.png is the result of PDFToImage -imageType png -resolution 300
Both are looking quite perfect and were generated on linux using jdk 1.6.0_15.
> Lines not showing in PrintPDF print-out (Table borders and SVG figures)
> -----------------------------------------------------------------------
>
> Key: PDFBOX-677
> URL: https://issues.apache.org/jira/browse/PDFBOX-677
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: JDK 1.5.0u18 on Windows XP Professional SP3
> Reporter: Christoph Schmidt
> Attachments: Original.pdf, PDFBOX677-Original.ps, PDFBOX677-Original1.png, PDFToImage-Result.jpg, PrintPDF-Result.pdf
>
>
> I am generating a single-page PDF file via XSLT/FOP, consisting of multiple
> tables of varying complexity and consisting of several figures created via SVG
> primitives (rect, path, text) in the used stylesheet.
> After generating and exporting the document to the file system, I want to print
> it programmatically via PDFBox's PrintPDF class. This succeeds apparently, but
> the resulting print-out lacks _all_ of the lines in the document: all table
> borders (of various sizes) are missing, and all figures are missing too (a large
> diagram and several small symbols within the text). All texts are printed
> correctly, except for the heading of the document, which is written in a bold
> and bigger font.
> This problem occurs on every printer at my disposal (two physical laser printers
> and one virtual pdf printer). The problem does not occur when opening and/or
> printing the originally exported document via Adobe Reader - the document shows
> and prints perfectly. The problem is always reproducible. I am using the (as of now) latest PDFBox
> version 1.1.0 on a JDK 1.5.0u18 on Windows XP Professional SP3.
> When converting the pdf with PDFBox's PDFToImage class, the problem becomes
> smaller, but persists nonetheless: the resulting JPG lacks a good third of the
> table borders, but shows all of the SVG-based lines correctly.
> I searched the bug tracker and the mailinglist archives but could not find a
> recent matching discussion or tracker item. PDFBox seems to have had problems
> with table borders already (I remember reading about line styles and weights not
> being rendered correctly), but all of those seem to date back to version numbers
> around version 0.8.
> I posted this problem to the user list ( http://pdfbox.markmail.org/message/a75wdvtk52xbxvjk?page=1 ) after searching the archives and this tracker and was told to open an issue on this tracker. I'll follow up with the mentioned samples in a minute.
> Any help would be appreciated!
> Many thanks in advance and have a good day,
> --Christoph Schmidt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.