I would like to add certain CSS effects like shadow, tracking to text on PDF when developed using document composer. As far as I know, CSS and PDF won't work together. But are there any alternate ways? Can anyone please provide a working example if possible?
-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
OBJECT=STRING, NAME='text1', TEXT='<font face="TREBUCHET MS" size=18>I would like to add shadow effect to this text</font>',
POSITION=(0.917 1.146), MARKUP=ON, WRAP=ON, DIMENSION=(7.396 0.729), METADATA='left: 0.917in; top: 1.146in; width: 7.396in; height: 0.729in; font-family: Trebuchet MS; font-size: 18pt; position: absolute; z-index: 1;', $
OBJECT=STRING, NAME='text2', TEXT='<font face="TREBUCHET MS" size=18>I would like to add CSS tracking property to this text which would add space between letter in each word</font>',
POSITION=(0.896 2.290), MARKUP=ON, WRAP=ON, DIMENSION=(7.396 0.729), METADATA='left: 0.896in; top: 2.29in; width: 7.396in; height: 0.729in; font-family: Trebuchet MS; font-size: 18pt; position: absolute; z-index: 2;', $
COMPONENT='DfltCmpt1', POSITION=(0 0), DIMENSION=(0 0), $
END
SET COMPONENT='DfltCmpt1'
TABLE FILE SYSCOLUM
" "
SUM TBNAME NOPRINT
IF READLIMIT EQ 1
ON TABLE SET PREVIEW ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
END
COMPOUND END
Thank youThis message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8206 All formats
August 29, 2019, 06:19 PM
Waz
I don't like your chances.
The PDF coming out of WebFOCUS is limited to what IBI have created for the output format.
I would suggest asking TechSupport.
If all else fails, perhaps post process the resulting PDF file with a third party command line tool