[
https://issues.apache.org/jira/browse/PDFBOX-3632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785165#comment-15785165
]
Tilman Hausherr commented on PDFBOX-3632:
-----------------------------------------
This is done in FontMapperImpl.java so you'd have to modify and build yourself.
However the mapping is already there:
{code}
substitutes.put("Times-Roman",
Arrays.asList("TimesNewRomanPSMT", "TimesNewRoman",
"TimesNewRomanPS",
"LiberationSerif", "NimbusRomNo9L-Regu"));
substitutes.put("Times-Bold",
Arrays.asList("TimesNewRomanPS-BoldMT", "TimesNewRomanPS-Bold",
"TimesNewRoman-Bold", "LiberationSerif-Bold",
"NimbusRomNo9L-Medi"));
substitutes.put("Times-Italic",
Arrays.asList("TimesNewRomanPS-ItalicMT",
"TimesNewRomanPS-Italic",
"TimesNewRoman-Italic", "LiberationSerif-Italic",
"NimbusRomNo9L-ReguItal"));
substitutes.put("Times-BoldItalic",
Arrays.asList("TimesNewRomanPS-BoldItalicMT",
"TimesNewRomanPS-BoldItalic",
"TimesNewRoman-BoldItalic",
"LiberationSerif-BoldItalic",
"NimbusRomNo9L-MediItal"));
{code}
So if this doesn't work, then either the PDF is different than you think or the
font isn't installed or it is named differently than thought.
> PDF convert TIFF on Linux server: Font changed and Chebox can't see the
> checked mark
> -------------------------------------------------------------------------------------
>
> Key: PDFBOX-3632
> URL: https://issues.apache.org/jira/browse/PDFBOX-3632
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: linux
> Reporter: austinchen
>
> I converted the PDFbox to a tiff file on Linux, compare the PDF file, there
> are below issues:
> 1. Font style changed, like bold type changed the lighter ;
> 2. The character of Microsoft Yahei Font was lost (On windows server is OK,
> have no this issue);
> 3. The check box only leave the box,the Check mark was lost, but when I
> changed the check mark style, like use the star mark, it appeared again; (On
> windows server is OK, have no this issue);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]