Insights, tutorials, and updates from the Foxit PDF SDK engineering team.
When your Foxit Merger for .NET SDK Getting Started Library don’t show any content, do the steps below to fix this error: Right click on the “FoxitHelpLibForNet.##.##.chm” file and select properties Click on “Unblock”
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) [...]
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 [...]
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"); [...]
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 [...]
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 “samplessimple_samplecomm_srcfgsdk_common.cpp” of the evaluation package and locate the call for FSPDF_Page_GetMatrix Change the parameters. For example, [...]
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 [...]
To handle additional functionality or methods to Foxit PDF SDK Android C API demo, follow the steps below: Go to “samplesViewerDemojni” and review how the implementation on how some of the API are already done.Tip: Look for functions that have similar parameters and use it as your template for writing your own. Create a new [...]
To get text object from a position in a PDF file using Foxit PDF SDK, follow the steps outlined below: Read the PDF file. Load the page and get the page objects in that page. Use FSPDF_PageObjects_GetObjectAtPos to get the text object in a certain position. Note: use page object get rectangle to see the [...]
The real size of an image object is inside the dictionary of the pdf file, get the image object and then get the dictionary data for the image object. Here is a simple example: FSCRT_PAGE page = NULL; ret = LoadPage(doc, i, &page); if (FSCRT_ERRCODE_SUCCESS != ret){ printf("Failed to load a given page.n"); return ret; [...]