Developer Posts

What is the relationship between FSPDF_FORM and FSPDF_FORMCONTROL? What about FSPDF_FORMCONTROL and FSCRT_ANNOT?

by Conor Smith | March 26, 2017
One PDF Form (FSPDF_FORM) can contain more than one Form Field, and one Form Field can contain more than one Form Control (FSPDF_ FORMCONTROL). Form Control (FSPDF_ FORMCONTROL) and Annotation (FSCRT_ANNOT) belong to the type of “annotation”. The difference is that FSPDF_ FORMCONTROL denotes the “widget” annotations, and FSCRT_ANNOT denotes other annotations which are not […]
Keep reading Keep reading

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

by Conor Smith | March 26, 2017
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 […]
Keep reading Keep reading

How can I add an object to FormXObject?

by Conor Smith | March 26, 2017
FormXObject is one kind of PageObject. So we can call the interface FSPDF_PageObjects_InsertObject to add an object to FormXObject. 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. […]
Keep reading Keep reading

After creating a new FreeText annotation, I called FSPDF_Annot_SetContents to set its contents, and then called FSPDF_Annot_ResetAppearance. But why are the contents not displayed?

by Conor Smith | March 26, 2017
For a FreeText annotation, it’s necessary to set its default appearance (DA). Calling the interface FSPDF_Annot_SetDefaultAppearance is needed for this task. Usually, we suggest setting up at least FSPDF_DEFAULTAPPEARANCE::font and FSPDF_DEFAULTAPPEARANCE::fontSize, while setting the value of FSPDF_DEFAULTAPPEARANCE::flags to FSPDF_DEFAULTAPPEARANCE_FONT. Note: This article refers to a deprecated version of a Foxit Product. If you are still […]
Keep reading Keep reading

How can I determine the width and height of a text object before inserting it to a page, which is in order to calculate the starting position more conveniently?

by Conor Smith | March 26, 2017
Foxit PDF SDK provides the interface FSCRT_Font_GetCharBBox (FSCRT_Font font, FS_DWORD Unicode, FSCRT_RECT * bbox) to get the width and height of a text object. 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 […]
Keep reading Keep reading

How can I make WebPDF Viewer run successfully if the front-end of WebPDF Viewer is hosted on a different domain from the back-end?

by Conor Smith | March 26, 2017
If your project which needs to be integrated with WebPDF Viewer is in a different domain from the WebPDF Viewer, you need to copy all the static files (front-end) of WebPDF Viewer into the webapp folder of your project. Also, you should modify the parameter of customizedUrl when you initialize the Viewer in ../viewer/webapp/scripts/control/pc/demo.js. For […]
Keep reading Keep reading

Why there is no signature function when I run the demo?

by Conor Smith | March 26, 2017
It might because the rendering engine is set to JavaScript rendering in the console. The JavaScript Rendering engine does not support any signature feature at present in the demo. Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit WebPDF Viewer, please refer to your download package […]
Keep reading Keep reading

Why is the number of pages of the output file more than that of the original file in WebPDF Viewer when I print the output file? How do you solve it?

by Conor Smith | March 26, 2017
The print configurations are not the same for different browsers. Therefore, we suggest setting the correct layout, paper size, and margins before printing. Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit WebPDF Viewer, please refer to your download package documents for Developer Guide and API […]
Keep reading Keep reading
Used everywhere

Trusted by