Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
Use GsCache during PDF Export

It may take a long time to render a complex drawing that contains many entities joined in blocks. To speed up the rendering process, the GsCache option of the graphic system can be used.

The GsCache option can also be used for increasing the speed of the PDF export process as well. It significantly decreases export time from about a quarter for medium blocks to several times for a very complicated drawing.

To use the GsCache option for PDF export, set the related options as in the code fragment below:


PDFExportParams params;
params.setExportFlags(PDFExportParams::kFlateCompression);
params.setUseGsCache(true);
    

Note: When exporting drawings that contain a large number of entities that are not combined into blocks, using the GsCache option may cause the export time to increase.

See Also

Set Parameters and Flags for PDF Export

Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.