Insights, tutorials, and updates from the Foxit PDF SDK engineering team.
Learn how to request an SDK library for a different platform by following the instructions, outlined in this article.
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 [...]
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 [...]
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 “samplessimple_samplecomm_srcfgsdk_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_samplepdf2img” and look at the output to [...]
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 [...]
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 [...]
The 64-bit version of Foxit PDF SDK ActiveX is located in the bin folder with the 32-bit version, but includes x64 in the filename.
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 [...]
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. [...]
Yes. Text extraction from a PDF can be done by calling the FSPDF_TextPage_ExportToFile function using C++. Download Foxit PDF SDK 4.1 and get the demo at: samplessimple_samplepdf2textpdf2text.cpp FS_RESULT FSPDF_TextPage_ExportToFile(FSPD_TEXTPAGE textPage, FSCRT_FILE file) Parameters: textPage - Handle to FSPD_TEXTPAGE object returned by function PSPDF_TextPage_Load file - Handle to a FSCRT_FILE object which can be a file object or [...]