[
https://issues.apache.org/jira/browse/PDFBOX-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17369315#comment-17369315
]
Michael Klink commented on PDFBOX-5195:
---------------------------------------
As already guessed in my first comment, the problem is that you ignore the crop
box of the page.
If you take a look at the crop box of that page
{noformat}
/CropBox [12.48 382.32 2538.48 5286.72]
{noformat}
you see that the visible coordinate ranges are {{12.48 <= x <= 2538.48}} and
{{382.32 <= y <= 5286.72}}.
On the other hand you draw your QR code image like this
{noformat}
48 0 0 48 793.70081 28.34646 cm
/Im3 Do
{noformat}
so it is a 48×48 image drawn at (793.7, 28.3). Obviously 28.3 is not in the
visible range {{382.32 <= y <= 5286.72}}, even the whole width 28.3...76.3 of
the image is outside.
Thus, you simply draw your QR code off-page
> QR-Code not showing on certain documents
> ----------------------------------------
>
> Key: PDFBOX-5195
> URL: https://issues.apache.org/jira/browse/PDFBOX-5195
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.20
> Reporter: Maximilian Belli
> Priority: Major
> Attachments: QR-Code_generation_code.java
>
>
> We create a software that enables users to download pdf files with a custom
> qrcode. To add the qrcode to the pdf file we use pdfbox (relevant code will
> be attached in a file). We now encounter files somtimes that get obviously
> changed by pdf box (we see that in the size of the file and also when using
> tools like winmerge), but the QR-Code does not show on the resulting file.
> So far we saw that all files had in common that they were pdf's of version
> 1.6, created via AutoCAD with the producer pdfplot12.hdi.
> We are currently talking to our customer to release the document for testing.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]