You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Mikhail Semionenko (JIRA)" <ji...@apache.org> on 2017/05/29 06:59:04 UTC
[jira] [Comment Edited] (PDFBOX-3810) Is it possible to show emoji
icons from the iOS library in the PDF document?
[ https://issues.apache.org/jira/browse/PDFBOX-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028079#comment-16028079 ]
Mikhail Semionenko edited comment on PDFBOX-3810 at 5/29/17 6:58 AM:
---------------------------------------------------------------------
I upgraded to version 2.0.6.
Yes, it seems that the problem was in the wrong parameter of the getFontByName method. I was able to get TrueTypeFont. Then I try to get a PDFont and see another exception:
java.lang.NullPointerException
[org.apache.fontbox.ttf.RAFDataStream.getCurrentPosition(RAFDataStream.java:88), org.apache.fontbox.ttf.TTCDataStream.getCurrentPosition(TTCDataStream.java:83), org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:322), org.apache.fontbox.ttf.TrueTypeFont.getTable(TrueTypeFont.java:139), org.apache.fontbox.ttf.TrueTypeFont.getOS2Windows(TrueTypeFont.java:174), org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.createFontDescriptor(TrueTypeEmbedder.java:184), org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.<init>(TrueTypeEmbedder.java:88), org.apache.pdfbox.pdmodel.font.PDCIDFontType2Embedder.<init>(PDCIDFontType2Embedder.java:65), org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:139), org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:108),
was (Author: semionenko):
I upgraded to version 2.0.6.
Yes, it seems that the problem was in the wrong parameter of the getFontByName method. I was able to get TrueTypeFont. Then I try to get a PDFont and see another exception:
> Is it possible to show emoji icons from the iOS library in the PDF document?
> ----------------------------------------------------------------------------
>
> Key: PDFBOX-3810
> URL: https://issues.apache.org/jira/browse/PDFBOX-3810
> Project: PDFBox
> Issue Type: Wish
> Reporter: Mikhail Semionenko
>
> I want to show emoji (like 😍) in the pdf document. Is it possible to do something like that?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org