You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/12/09 13:42:00 UTC

[jira] [Commented] (PDFBOX-5037) Label barcode is missing or drawn as black box when printing on landscape

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

Tilman Hausherr commented on PDFBOX-5037:
-----------------------------------------

The barcode is a 1 pixel wide image. I suspect that something goes wrong when scaling.

Workaround: set a non 0 "dpi" parameter, e.g. 600.

> Label barcode is missing or drawn as black box when printing on landscape
> -------------------------------------------------------------------------
>
>                 Key: PDFBOX-5037
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5037
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.21
>            Reporter: Mindaugas Kilius
>            Priority: Major
>         Attachments: label.pdf, landscape.pdf, pdfbox-label-bug.zip, portrait.pdf
>
>
> Trying to print pdf label using pdfbox. When landscape page format is used barcode on the label disappears or is drawn as black box. 
> I have attached source label and pdf results when trying to print to "Microsoft Print to PDF". I'm having same issue with label printer. portrait.pdf looks fine, while landscape.pdf is missing the barcode. I have also attached maven project to recreate the issue.



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

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