Skip to content

Commit 3df17a5

Browse files
Pdf arabic (#131)
* Provide a mechanism to define defaults values for PDFReport.ini through a PDFReport.template. Issue 74650 * Remove unused imports. Improve maintainability ParseIni constructors. Issue 74650 * Fix NullPointerException in ParseINI constructor. Issue 74650 * Added new property to PdfReport.ini related to mechanism to define defaults values for PDFReport.ini through a PDFReport.template in order to keep compatibility. Issue 74650
1 parent f13da43 commit 3df17a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

common/src/main/java/com/genexus/reports/Const.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class Const
5151

5252
// Secciones
5353
public static final String EMBEED_SECTION = "Embeed Fonts";
54+
public static final String EMBEED_NOT_SPECIFIED_SECTION= "EmbeedNotSpecifiedFonts";
5455
public static final String MS_FONT_LOCATION = "Fonts Location (MS)"; // Seccion donde estan los mappings font <--> FileName de la VM Microsoft
5556
public static final String SUN_FONT_LOCATION = "Fonts Location (Sun)"; // Seccion donde estan los mappings font <--> FileName de la VM de Sun
5657
public static final String FONT_SUBSTITUTES_SECTION = "Fonts Substitutions"; // Seccion donde estan los mappings extra de Font --> Font.

java/src/main/java/com/genexus/reports/PDFReportItext.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ private void loadProps()
396396

397397
props.setupGeneralProperty(Const.PDF_REPORT_INI_VERSION_ENTRY, Const.PDF_REPORT_INI_VERSION);
398398
props.setupGeneralProperty(Const.EMBEED_SECTION, Const.EMBEED_DEFAULT);
399+
props.setupGeneralProperty(Const.EMBEED_NOT_SPECIFIED_SECTION, Const.EMBEED_DEFAULT);
399400
props.setupGeneralProperty(Const.SEARCH_FONTS_ALWAYS, "false");
400401
props.setupGeneralProperty(Const.SEARCH_FONTS_ONCE, "true");
401402
props.setupGeneralProperty(Const.SERVER_PRINTING, "false");
@@ -1132,7 +1133,8 @@ private Hashtable getFontLocations()
11321133

11331134
private boolean isEmbeddedFont(String realFontName) {
11341135
boolean generalEmbeedFont = props.getBooleanGeneralProperty(Const.EMBEED_SECTION, false);
1135-
return generalEmbeedFont && props.getBooleanProperty(Const.EMBEED_SECTION, realFontName, generalEmbeedFont);
1136+
boolean generalEmbeedNotSpecified = props.getBooleanGeneralProperty(Const.EMBEED_NOT_SPECIFIED_SECTION, false);
1137+
return generalEmbeedFont && props.getBooleanProperty(Const.EMBEED_SECTION, realFontName, generalEmbeedNotSpecified);
11361138
}
11371139

11381140
public void setAsianFont(String fontName, String style)

0 commit comments

Comments
 (0)