April 2017

How to request an SDK for a different platform?

by Conor Smith | April 5, 2017
To request an SDK for a different platform, follow the steps below: What operating system do you need support for? What version of the operating system? What architecture does it use? Provide the hardware device name and version of the device. Provide the compiling tool needed to build the library. What flag is needed to […]
Keep reading Keep reading

How to provide Foxit with the necessary data for printing related problems?

by Conor Smith | April 5, 2017
Follow these steps to provide Foxit with the necessary data for printing related problems: Open Devices and Printers by clicking the Start button , and then, on the Start menu, clicking Devices and Printers. Right-click a printer, and then click Printer properties. On the General tab, click Print Test Page. Scan print info and send […]
Keep reading Keep reading

How to display fonts correctly using Foxit PDF SDK?

by Conor Smith | April 5, 2017
To display the fonts correctly, you must use the FSCRT_Library_AddFontFile or use FSCRT_Library_SetFontMapperHandler. Here is how to use FSCRT_Library_SetFontMapperHandler in C++. declare the following structure: static FSCRT_FONTMAPPERHANDLER ExternalFontMapper; static string FallbackFontPath; 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){ //This call back will trigger when an external […]
Keep reading Keep reading

How to render only a section of a PDF on Foxit PDF SDK?

by Conor Smith | April 5, 2017
Follow the steps outlined below to render a selection of a PDF on Foxit PDF SDK: Change the parameters of FSPDF_Page_GetMatrix before rendering Go to “samples\simple_sample\comm_src\fgsdk_common.cpp” and locate the call for FSPDF_Page_GetMatrix Change the parameters. For example, “FSPDF_Page_GetMatrix(page, -200, -100, (FS_INT32)width*1.5, (FS_INT32)height*3, 0, &mt)” Run the demo at “simple_sample\pdf2img” and look at the output to […]
Keep reading Keep reading

How to fix “error C3861: ‘InitializeCriticalSectionEx’:identifier not found” or “error C3861: ‘FSCRT_Renderer_CreateOnWindowsDC’: identifier not found”

by Conor Smith | April 5, 2017
To fix these errors in Foxit PDF SDK, follow the steps below: In Visual Studio’s “Solution Explorer” right click on the project with the error and select properties Select Configuration Properties ->General Set “Platform Toolset” to “Visual Studio 2010 (v100)” Note: This article refers to a deprecated version of a Foxit Product. If you are […]
Keep reading Keep reading

How to read outlines with Foxit PDF SDK

by Conor Smith | April 5, 2017
Outline and Bookmarks are the same in PDF. Please see the header file fpdf_document_r.h and locate the method starting with FSPDF_Bookmark_XXX. Function with the naming convention FSPDF_Bookmark_XXX are the function that will allow user to extract bookmark information. Note: This article refers to a deprecated version of a Foxit Product. If you are still using […]
Keep reading Keep reading

How to use Foxit PDF SDK ActiveX with Visual Basic

by Conor Smith | April 5, 2017
Basically, you have two options to use Foxit PDF SDK ActiveX component with Visual Basic. Both are described above: Option A: Open Excel or Access Select DEVELOPER->Visual BasicNote: If you do not have the Developer tab. Go to File->Option->Customize Ribbon-> Check the Developer tab to add it In the Microsoft Visual Basic for applications, select […]
Keep reading Keep reading

How to remove the Foxit PDF SDK ActiveX Professional header?

by Conor Smith | April 5, 2017
Calling the function ShowTitleBar(false) will remove the header panel that appears above the toolbar on the Foxit PDF SDK ActiveX component. ShowTitleBar()  Description: Show or hide the title bar. Prototype: void ShowTitleBar(BOOL bShow) Parameters: bShow: A flag specifying specify whether to show the title bar. TRUE - Show the title bar. FALSE - Hide the title bar. […]
Keep reading Keep reading
Used everywhere

Trusted by