Skip to content

Commit

Permalink
Enhance the designer to add the PDF emitter options like configuration
Browse files Browse the repository at this point in the history
at advanced property register
  • Loading branch information
speckyspooky committed Aug 10, 2024
1 parent ca161ed commit 82f9a8d
Show file tree
Hide file tree
Showing 7 changed files with 514 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,10 @@ private void drawText(String text, float textX, float textY, FontInfo fontInfo,
if (this.pageDevice.isPdfAFormat() && fontInfo.getBaseFont() != null
&& !fontInfo.getBaseFont().isEmbedded()) {
try {
// PDF/A fallback font must be entered fully qualified with path and file name
String defaultFontPdfA = this.pageDevice.getDefaultFontPdfA();
if (defaultFontPdfA != null) {
font = BaseFont.createFont(defaultFontPdfA, "", true);
font = BaseFont.createFont(defaultFontPdfA, BaseFont.IDENTITY_H, true);
}
logger.log(Level.WARNING,
"PDF/A: " + fontInfo.getFontName() + " not embeddable, fallback font used.");
Expand Down
Loading

0 comments on commit 82f9a8d

Please sign in to comment.