Developer Posts

Foxit PDF SDK 4.x/5.x module breakdown

by Conor Smith | April 4, 2017
Break down of the Module package. Note: Please read the list like this “Module package – Module included.” Standard  – Renderer, Image (write for Bitmap only),  PDF Base, PDF Document(Read), PDF Async(read), PDF Page (Read), PDF Object (Read), PDFTextPage(Read), PDF Reflow(Read), App, Base Edit – Image(Read), PDF Document(Write), PDF Page(Write), PDF Object(Write), PDF Page Object(Write) […]
Keep reading Keep reading

How to use Foxit PDF SDK ActiveX in C# or VB?

by Conor Smith | April 4, 2017
Follow the steps outlined to use Foxit PDF SDK ActiveX in C# or Visual Basic: Open Visual Studio 2010/2013 Select File -> New ->Project -> Visual C# or Visual Basic -> Windows -> Windows Forms Application -> OK Select Tools -> Choose Toolbox Items-> COM Components Check “FoxitPDFSDK Pro Control” -> OK Note: If “FoxitPDF Pro […]
Keep reading Keep reading

List of the common problems with licensing and getting a watermark.

by Conor Smith | April 4, 2017
Sometimes even after licensing Foxit PDF SDK ActiveX you can still get a watermark on your PDF files. The most common problems causing that are described below: License is not applied correctly. Please call UnlockActiveX after the ActiveX component initialized.  Please also check if there is spacing in the unlock code that shouldn’t be there. axFoxitPDFSDK1.UnLockActiveX("XXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); […]
Keep reading Keep reading

How to use the OnShowSavePrompt?

by Conor Smith | April 4, 2017
To use the OnShowSavePrompt function in Foxit PDF SDK ActiveX,  follow the guidelines below: Setting bShow=false will disable the prompt when closing the ActiveX. Setting the following will control how the PDF is handled without the prompt. // nResult=0 is not to save. // nResult=1 is to save. // nResult=6 no setting has been set. private void […]
Keep reading Keep reading

How to render only a section of a PDF?

by Conor Smith | April 4, 2017
It is possible to render only a section of a PDF with the functionality provided in Foxit PDF SDK. The steps to do that are outlined below: Foxit PDF SDK  Change the parameters of FSPDF_Page_GetMatrix before rendering Go to “samples\simple_sample\comm_src\fgsdk_common.cpp” of the evaluation package and locate the call for FSPDF_Page_GetMatrix Change the parameters.  For example, […]
Keep reading Keep reading

How to support non-standard fonts on Foxit PDF SDK?

by Conor Smith | April 4, 2017
To support non-standard fonts on Foxit PDF SDK, follow the steps outlined below: Use the FSCRT_Library_AddFontFile or use FSCRT_Library_SetFontMapperHandler. Create the callback to handle the non-standard font. static FSCRT_FONTMAPPERHANDLER ExternalFontMapper;  static FS_RESULT MapExternalFont(FS_LPVOID clientData, FS_LPCSTR fontName, FS_DWORD fontStyles, FS_INT32 weight, FS_INT32 charset, FSCRT_FILE *fontFile, FS_INT32 *faceIndex){         if(fontName=="randomFontName") {             //set fontFile to use the non-Standard font […]
Keep reading Keep reading
Used everywhere

Trusted by