PDF specific features

PDF specific features

XFRX 16.1

Member  oDocument of XFRX Session object is deprecated. You can use member oDocumentWriter.

XFRX 17.3

Member  oDocument of XFRX Session object is removed.

PDF version 

(since XFRX 16.1)

You can set PDF version. Default version is 1.6 for XFRX 16.0, 1.7 for XFRX 16.1. Change PDF version must be first after calls setParams() method. 

m.loSession.setOtherParams("VERSION","1.5")

TAB size 

(since XFRX 17.0.0)

Specifies the width, in characters, of a tab. Default value is 4.

m.loSession.setOtherParams("TABSIZE",3)

 

Compression and memory level 

(since XFRX 22.0)

Specifies compression level (1-9)  and memory level (1-9) for deflate. 

If you specify compression level to -1 (default value), then compression level will be 6.

If you specify memory level to -1 (default value), then memory level will be 8.

If you specify compression level to 9 and memory level to 9, then data after deflate  will be smaller but it will take longer.

 

Compression level
m.loSession.setOtherParams("COMPRESSIONLEVEL", -1)

 

Memory level
m.loSession.setOtherParams("MEMORYLEVEL", -1)

MEMORYLEVEL was added in XFRX 24.0

Debug mode 

Parameter DONOTPUTDOCUMENTID

On french OS you can have problem with searching in Adobe Reader. In this case you can set parameter DONOPUTDOCUMENTID, if you do not use passwords or digital signature.

m.loSession.SetOtherParams("DONOTPUTDOCUMENTID,.T.) 

Parameters DEVELOP and DEVELOPFOLDER

If you set these parameters, xfrx copy temporary files into specified folder. 

m.loSession.setOtherParams("DEVELOP",.T.) m.loSession.setOtherParams("DEVELOPFOLDER",lcPath+"_out\"+lcOut)

Parameter  DONOTZIPTEXTSTREAM

If you set the parameter, output stream inside PDF will not be compressed.  

m.loSession.SetOtherParams("DONOTZIPTEXTSTREAM",.T.)