You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Volker Bier (JIRA)" <ji...@apache.org> on 2009/06/18 08:46:07 UTC
[jira] Created: (PDFBOX-485) Fonts not printed on HP laserjet (1320
& 8150) when having landscape orientation
Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
--------------------------------------------------------------------------------
Key: PDFBOX-485
URL: https://issues.apache.org/jira/browse/PDFBOX-485
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 0.8.0-incubator
Environment: windows xp and ubuntu linux 9.04
svn at revision 785921
hp laserjet 8150 & hp laserjet 1320
Reporter: Volker Bier
When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
The Text was visible on the PDFReader preview, but was missing in the printout.
After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-485) Fonts not printed on HP laserjet
(1320 & 8150) when having landscape orientation
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721112#action_12721112 ]
Andreas Lehmkühler commented on PDFBOX-485:
-------------------------------------------
Ah, I see, looks quite interesting. I'll have a further look later when beeing at home again.
Thanks for the contribution.
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-485) Fonts not printed on HP laserjet (1320
& 8150) when having landscape orientation
Posted by "Volker Bier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Bier updated PDFBOX-485:
-------------------------------
Attachment: test-landscape2.pdf
file to reproduce the problem (taken from pdfbox-363)
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-485) Fonts not printed on HP laserjet
(1320 & 8150) when having landscape orientation
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722994#action_12722994 ]
Andreas Lehmkühler commented on PDFBOX-485:
-------------------------------------------
Your solution sounds reasonable to me, I've already tested in the same direction. I'll perform some further tests with your sources and we'll see if it works in every situation.
By now thanks a lot for your contribution.
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: PDSimpleFont.java, PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-485) Fonts not printed on HP laserjet
(1320 & 8150) when having landscape orientation
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721731#action_12721731 ]
Andreas Lehmkühler commented on PDFBOX-485:
-------------------------------------------
I made some tests and I realized too that there are some problems with other rotation angles than 90 degrees. I'm afraid it is not save to assume that the transformation only contains a rotation. There are 3 ways to set the fontsize in a pdf: setting the fontsize itself, add the scaling to the textmatrix or a combination of both. So the solution will be a bit more complicated, but we are on the right way.
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: PDSimpleFont.java, PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-485) Fonts not printed on HP laserjet (1320
& 8150) when having landscape orientation
Posted by "Volker Bier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Bier updated PDFBOX-485:
-------------------------------
Attachment: PDType1Font.java
PDTrueTypeFont.java
PDSimpleFont.java
I printed using the PDFReader, attached modified source files.
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-485) Fonts not printed on HP laserjet
(1320 & 8150) when having landscape orientation
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721102#action_12721102 ]
Andreas Lehmkühler commented on PDFBOX-485:
-------------------------------------------
How do you print your pdf?
What changes have you made?
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PDFBOX-485) Fonts not printed on HP laserjet
(1320 & 8150) when having landscape orientation
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-485.
---------------------------------------
Resolution: Fixed
Fix Version/s: 0.8.0-incubator
I've added Volkers patch with version 788440. I've to adjust the source a little to ensure jdk1.4 compliance and to fullfil the checkstyle requirements.
Thanks to Volker for his help
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Fix For: 0.8.0-incubator
>
> Attachments: PDSimpleFont.java, PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-485) Fonts not printed on HP laserjet (1320
& 8150) when having landscape orientation
Posted by "Volker Bier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Bier updated PDFBOX-485:
-------------------------------
Attachment: PDSimpleFont.java
The code most likely will not work for text that is rotated in an arbitrary angle, but only for multiples of 90 degrees. If it is safe to assume that the transformation passed to the drawString method in PDSImpleFont does only contain a rotation (which seems to be the case during my experiments), it would be better to use the update version of PDSimpleFont.
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: PDSimpleFont.java, PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-485) Fonts not printed on HP laserjet
(1320 & 8150) when having landscape orientation
Posted by "Volker Bier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722984#action_12722984 ]
Volker Bier commented on PDFBOX-485:
------------------------------------
It looks like we simply need to apply the font transformation to the graphics object, as in my updated source. It just quickly tested it by using an affinetransform consisting of a 30° rotation
combined with a magnification of 24 (font size was 1.0) and the preview and printout looked okay.
This needs further testing, but since I can now print my pdf files correctly, I will leave this work to you...
> Fonts not printed on HP laserjet (1320 & 8150) when having landscape orientation
> --------------------------------------------------------------------------------
>
> Key: PDFBOX-485
> URL: https://issues.apache.org/jira/browse/PDFBOX-485
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: windows xp and ubuntu linux 9.04
> svn at revision 785921
> hp laserjet 8150 & hp laserjet 1320
> Reporter: Volker Bier
> Attachments: PDSimpleFont.java, PDSimpleFont.java, PDTrueTypeFont.java, PDType1Font.java, test-landscape2.pdf
>
>
> When printing the attached file on either of the two mentioned printers, only empty rectangles were printed.
> The Text was visible on the PDFReader preview, but was missing in the printout.
> After having read http://netstripe.com/info/appnote/app_031.html, I changed the code to rotate the page instead
> of the font. Now the text is printed correctly. I will provide my changes if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.