SAP ABAP Class CL_RSTX_PDFFONT_MANAGER (Manages the different fonts of a PDF font)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-SRV-SCR (Application Component) SAPscript
⤷ STXD (Package) SAPscript
⤷ BC-SRV-SCR (Application Component) SAPscript
⤷ STXD (Package) SAPscript
Properties
Class | CL_RSTX_PDFFONT_MANAGER | |
Short Description | Manages the different fonts of a PDF font | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | STXD | SAPscript |
Created | 20121123 | SAP |
Last change | 20140121 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ABAP | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_RSTX_PDFFONT_MANAGER has no interface implemented.
Friends
Class CL_RSTX_PDFFONT_MANAGER has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | DEVICE_TYPE | Instance attribute | Private | Type reference (TYPE) | TSP0A-PATYPE | Name of device type | 20121123 | ||
2 | PDFFONT_TAB | Instance attribute | Private | Type reference (TYPE) | T_PDFFONT_TAB | Buffer table of font references | 20121123 | ||
3 | PDF_PREVIEW | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | PDF conversion for PDF Preview? | 20121123 | ||
4 | SAP_TO_PDF_FONT_MAPPING | Instance attribute | Private | Type reference (TYPE) | T_MAP_SAP_FONT_INFO | Currently active SAP font (non-UPE) | 20121123 | ||
5 | SAP_TO_PDF_FONT_TAB | Instance attribute | Private | Type reference (TYPE) | T_MAP_SAP_FONT_TAB | Buffer table of SAP to PDF font assignment | 20121123 | ||
6 | UPE_TO_PDF_FONT_MAPPING | Instance attribute | Private | Type reference (TYPE) | T_UPE_FONT_INFO | UPE font of currently active SAP font | 20121123 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CONSTRUCTOR | Instance method | Public | Constructor | 20121123 | |
2 | GET_FONTLIST_POST_PROCESSING | Instance method | Public | Method | Get complete list of fonts where parts are missing in PDF | 20121123 |
3 | GET_PDFFONT_FROM_UCSCRIPT | Instance method | Public | Method | Get the PDF font (used by the active SAP font/Unicode area) | 20121123 |
4 | GET_PDFFONT_REF | Instance method | Public | Method | Get Reference to PDF Font object | 20121123 |
5 | SET_ACTIVE_SAP_FONT | Instance method | Public | Method | Sets the currently active SAP font (non-UPE) | 20121123 |
6 | SET_ACTIVE_UPE_FONT | Instance method | Public | Method | Sets the currently active UPE font | 20121123 |
Events
Class CL_RSTX_PDFFONT_MANAGER has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | T_FONTLIST | Public | See coding | 20121123 | T_FONTLIST type standard table of ref to CL_RSTX_PDFFONT with default key
|
||
2 | T_MAP_SAP_FONT_INFO | Private | See coding | 20121123 | begin of t_Map_SAP_Font_Info,
family type tfo01-tdfamily,
bold type tfo02-tdbold,
italic type tfo02-tditalic,
basiclatin_is_cjk type abap_bool,
basiclatin_langkey like sy-langu,
han_script_langkey like sy-langu,
maptab type t_Map_Script_Font_Tab,
end of t_Map_SAP_Font_Info
|
||
3 | T_MAP_SAP_FONT_TAB | Private | See coding | 20121123 | t_Map_SAP_Font_Tab type sorted table of t_Map_SAP_Font_Info with unique key
family bold italic basiclatin_is_cjk basiclatin_langkey han_script_langkey
|
||
4 | T_MAP_SCRIPT_FONT_INFO | Private | See coding | 20121123 | begin of t_Map_Script_Font_Info,
ucscript type i,
pdffont type ref to CL_RSTX_PDFFONT,
fonttype(1) type c,
force_bold(1) type c,
end of t_Map_Script_Font_Info
|
||
5 | T_MAP_SCRIPT_FONT_TAB | Private | See coding | 20121123 | t_Map_Script_Font_Tab type sorted table of t_Map_Script_Font_Info
with unique key ucscript
|
||
6 | T_PDFFONT | Private | See coding | 20121123 | begin of T_PDFFONT,
fonttype(1) type c,
UPE_PHYSID type TFR_PHYSFONTID,
UPE_LOGIDX type TFR_INDEX,
ttf_family type tdfamily,
ttf_bold type tdbold,
ttf_italic type tditalic,
core_font_name type tfo12-tdfontname,
preview_font_name type string,
pdffont type ref to CL_RSTX_PDFFONT,
end of T_PDFFONT
|
||
7 | T_PDFFONT_TAB | Private | See coding | 20121123 | T_PDFFONT_TAB type sorted table of T_PDFFONT
with unique key UPE_PHYSID UPE_LOGIDX ttf_family ttf_bold ttf_italic
core_font_name preview_font_name
|
||
8 | T_UPE_FONT_INFO | Private | See coding | 20121123 | begin of t_UPE_Font_Info,
UPE_PHYSID type TFR_PHYSFONTID,
UPE_LOGIDX type TFR_INDEX,
pdffont type ref to CL_RSTX_PDFFONT,
fonttype(1) type c,
end of t_UPE_Font_Info
|
Method Signatures
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DEVICE_TYPE | Call by reference | Type reference (TYPE) | TSP0A-PATYPE | Name of device type | 20121123 | ||
2 | Importing | PDF_PREVIEW | Call by reference | Type reference (TYPE) | ABAP_BOOL | PDF conversion for PDF Preview? | 20121123 |
Method CONSTRUCTOR on class CL_RSTX_PDFFONT_MANAGER has no exception.
Method GET_FONTLIST_POST_PROCESSING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | FONTLIST | Value transfer | Type reference (TYPE) | T_FONTLIST | Table with references to fonts | 20121123 |
Method GET_FONTLIST_POST_PROCESSING on class CL_RSTX_PDFFONT_MANAGER has no exception.
Method GET_PDFFONT_FROM_UCSCRIPT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | FONTTYPE | Call by reference | Type reference (TYPE) | C | Type of font | 20121123 | ||
2 | Exporting | FORCE_BOLD | Call by reference | Type reference (TYPE) | C | SAP font is bold, but PDF font is not bold | 20130221 | ||
3 | Exporting | PDFFONT | Call by reference | Object reference (TYPE REF TO) | CL_RSTX_PDFFONT | Reference to PDF font object | 20121123 | ||
4 | Importing | UCSCRIPT | Call by reference | Type reference (TYPE) | I | Unicode area | 20121123 |
Method GET_PDFFONT_FROM_UCSCRIPT on class CL_RSTX_PDFFONT_MANAGER has no exception.
Method GET_PDFFONT_REF Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | CORE_FONT_NAME | Call by reference | Type reference (TYPE) | TFO12-TDFONTNAME | Name of Adobe Core Font | 20121123 | ||
2 | Importing | PREVIEW_FONT_NAME | Call by reference | Type reference (TYPE) | STRING | Name of Windows font (used for PDF Preview) | 20121123 | ||
3 | Returning | REF | Value transfer | Object reference (TYPE REF TO) | CL_RSTX_PDFFONT | Reference to PDF Font object | 20121123 | ||
4 | Importing | TTF_BOLD | Call by reference | Type reference (TYPE) | TDBOLD | Bold flag of uploaded TTF font | 20121123 | ||
5 | Importing | TTF_FAMILY | Call by reference | Type reference (TYPE) | TDFAMILY | Font family of uploaded TTF font | 20121123 | ||
6 | Importing | TTF_ITALIC | Call by reference | Type reference (TYPE) | TDITALIC | Italic flag of uploaded TTF font | 20121123 | ||
7 | Importing | UPE_LOGIDX | Call by reference | Type reference (TYPE) | TFR_INDEX | Typeface Repo - Logical Index into Font Binary | 20121123 | ||
8 | Importing | UPE_PHYSID | Call by reference | Type reference (TYPE) | TFR_PHYSFONTID | Typeface Repo - Physical Font ID | 20121123 |
Method GET_PDFFONT_REF on class CL_RSTX_PDFFONT_MANAGER has no exception.
Method SET_ACTIVE_SAP_FONT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | BASICLATIN_IS_CJK | Call by reference | Type reference (TYPE) | ABAP_BOOL | Use CJK font for Basic Latin | 20121123 | ||
2 | Importing | BASICLATIN_LANGKEY | Call by reference | Attribute reference (LIKE) | SY-LANGU | CJK language for Basic Latin | 20121123 | ||
3 | Importing | BOLD | Call by reference | Type reference (TYPE) | TDBOLD | Bold flag of SAP font | 20121123 | ||
4 | Importing | FAMILY | Call by reference | Type reference (TYPE) | TDFAMILY | Font family of SAP font | 20121123 | ||
5 | Importing | HAN_SCRIPT_LANGKEY | Call by reference | Attribute reference (LIKE) | SY-LANGU | CJK language for Han | 20121123 | ||
6 | Importing | ITALIC | Call by reference | Type reference (TYPE) | TDITALIC | Italic flag of SAP font | 20121123 |
Method SET_ACTIVE_SAP_FONT on class CL_RSTX_PDFFONT_MANAGER has no exception.
Method SET_ACTIVE_UPE_FONT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | UPE_LOGIDX | Call by reference | Type reference (TYPE) | TFR_INDEX | Typeface Repo - Logical Index into Font Binary | 20121123 | ||
2 | Importing | UPE_PHYSID | Call by reference | Type reference (TYPE) | TFR_PHYSFONTID | Typeface Repo - Physical Font ID | 20121123 |
Method SET_ACTIVE_UPE_FONT on class CL_RSTX_PDFFONT_MANAGER has no exception.
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in | 740 |