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

Tilman Hausherr edited comment on PDFBOX-5194 at 5/18/21, 5:18 PM:
-------------------------------------------------------------------

Now I was able to reproduce it, I forgot to rename the actual font 
(ZD______.PFB). It has nothing to do with the screen. I need to think about 
this a bit, but I guess the solution will be to force to usage of the AFM file. 
Because the font from your machine isn't embedded inside that PDF. When I wrote 
that part, I probably thought that the glyphs of alternative fonts would all 
have similar sizes. So it's wrong to use the actual font from the system 
(unless it is the original font). Using the actual font would only make sense 
when embedding it, or when using the shape as vector graphics.


was (Author: tilman):
Now I was able to reproduce it, I forgot to rename the actual font 
(ZD______.PFB). It has nothing to do with the screen. I need to think about 
this a bit, but I guess the solution will be to force to usage of the AFM file. 
Because the font from your machine isn't embedded inside that PDF.

> CreateCheckBox example draws too large, clipped checkmark
> ---------------------------------------------------------
>
>                 Key: PDFBOX-5194
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5194
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.23
>         Environment: Windows 10 64-bit with JRE 15
>            Reporter: Andreas Unterweger
>            Priority: Major
>             Fix For: 2.0.24, 3.0.0 PDFBox
>
>         Attachments: .pdfbox.cache, CheckBoxSample.pdf, checkbox.PNG
>
>
> I am using the example code from CreateCheckBox of v2.0.23 to create a PDF 
> with a rendered checkbox 
> ([https://github.com/apache/pdfbox/blob/2.0.23/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateCheckBox.java]).
>  Regardless of whether I use the original code or change .unCheck() to 
> .check(), the checkmark drawn in the PDF (when the checkbox is checked) is 
> too large and gets clipped (see attached image).
> I tried the latest Adobe Reader version and other PDF viewers as well as 
> drawing into a different, pre-existing PDF document. The issue remains. In 
> case it is relevant, I receive the following output when executing the code:
> {{Mai 17, 2021 10:51:17 AM org.apache.fontbox.ttf.CmapSubtable 
> processSubtype14}}
>  {{WARNING: Format 14 cmap table is not supported and will be ignored}}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to