Foxit PDF SDK 5.3

How can I print layers which are supposed only to be printed but not displayed?

Foxit PDF SDK provides parameter setting to control printing. We can set the parameter “flag” in the interface FSPDF_RenderContext_SetFlags(FSPDF_RENDERCONTEXT pdfRenderContext, FS_DWORD flags) to “FSPDF_RENDERCONTEXTFLAG_OCGPRINT” to print the layers as intended.

Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit PDF SDK 5.3 or older, please refer to your download package documents for Developer Guide and API Reference.

Get a trial version of the new Foxit PDF SDK and see our latest generation SDK’s brand new features!

Updated on March 26, 2017

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: