Socket
Book a DemoInstallSign in
Socket

@foxitsoftware/foxit-pdf-sdk-node

Package Overview
Dependencies
Maintainers
20
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxitsoftware/foxit-pdf-sdk-node

Foxit PDF SDK For Node.js.

11.0.0
latest
npmnpm
Version published
Maintainers
20
Created
Source

Foxit PDF SDK v11.0 Release Date: 31 July 2025

πŸ“¦ Platform and Ecosystem

πŸ’» Programming Languages and Platforms

  • Go Language Support: Added Go language support for Linux x32/x64 and macOS x64 platforms
    � ️ Note: OCR and Compliance features are not supported in the current Go library.
  • Python Enhancements:
    • Expanded Platform Support: Python library now supports Linux ARM architecture
    • Improved Version Compatibility: Built with ABI3 interface to ensure compatibility with Python 3.11 and future micro versions

🧩.NET Ecosystem

  • Foxit.SDK.Dotnet NuGet Package: Added macOS Arm64 architecture support
  • .NET Core: Now supports Linux ARM architecture
  • Strong Name Support: Applied to PDF Print Manager for both .NET Framework and .NET Core

οΏ½ Logging and Debugging

Enhanced Logging

  • Stream-based Logging: New SetLogFile() method now supports stream callbacks
  • Log Flushing: New FlushLog() method for immediate log write-out

πŸ” Security and Compliance Enhancements

  • Enhanced Thread Safety:

    • Document-level thread safety improvements
    • Library::Initialize() adds optional parameter bool enable_js_xfa_threadsafety = false for JavaScript and XFA thread safety
  • New Sanitize() Method: Automatically detects and removes hidden or sensitive info

  • RemoveHiddenInfo() Method: Allows selective cleanup of metadata, scripts, etc.

  • EnableHandleTransparency() Method: Removes transparency during PDF/A conversion for compliance

🎨 Graphics and Rendering Enhancements

🧩 Graphics Objects

  • New Object Types:
    • e_TypeInlines: Correct rendering of small inline images (e.g., stamps/logos)
    • e_TypeEmptyMarkedContent: Preserves tag structure of empty content

πŸ–₯️ Rendering Control

  • SetScreenDPIScale() for high-DPI scaling of notes
  • SetRenderLayer() to control which layers are rendered
  • ClearClips() to reset clipping regions
  • Transparency support in StartRenderBitmap()
  • New ContentFlag enum values for highlight-only rendering

🎨 Color and Display

  • SetForegroundColor() and SetForegroundColorMode() for text/path color control
  • Support for WebP image format (ImageType.e_WEBP)
  • ConvertToMono() supports conversion to 1-bit monochrome

πŸ“„ PDF Object Management

  • CreateFromName() and CreateFromNameW() for named object creation
  • PDFArray::AddReference() to insert reference entries
  • CreateFromString() enhanced to accept length parameter

πŸ“„ Page and Content Management

πŸ“‘ Page Operations

  • PageBasicInfoArray: Represents lightweight info for all pages
  • GetAllPageBasicInfo(): Bulk retrieval of page basics

πŸ“₯ Extraction and Insertion

  • New enums:
    • e_ExtractPagesOptionBookmark for StartExtractPages()
    • e_InsertDocOptionBookmark for InsertDocument()
  • InsertDocument() now supports optional bookmark_title parameter

πŸ”€ Font and Text Management

  • Directional font sizing via TextState::font_vertical_size and font_horizontal_size
  • Font(StreamCallback* stream) constructor now supports font stream input
  • SplitTextsInRectangle() allows character-level separation of text in specified areas

✍️ Signature Management

  • UnregisterSignatureCallback() to restore default SDK signature handler
  • AddPagingSealSignature() now includes to_check_permission flag for permission validation

🧱 Layer Management

  • LayerNode::GetAnnots() retrieves annotations per layer
  • LayerTree::GetOCGsByPageIndex() supports page-based OCG access
  • SetOCGStateAction class added for batch visibility control

πŸ“ Forms and XFA

οΏ½ Form Recognition

  • StartRecognizeForm() overload allows control over tooltip generation

XML/XFA Enhancements

  • GetXMLContent() provides access to internal XFA XML
  • ExportData() supports stream-based output
  • DocProviderCallback::SetFocus() adds re-layout parameter for layout change notification

οΏ½ OCR and Conversion

πŸ”‘ OCR Enhancements

  • OCRConvertTo() supports direct conversion to formats (DOCX, RTF, etc.)
  • OCRCallback class and SetOCRCallback() method to monitor and terminate OCR jobs
  • is_sequentially_process parameter added to switch between sequential/parallel modes

🌐 HTML to PDF

  • to_hide_header and to_hide_footer control header/footer visibility
  • to_deny_local_file_access enhances security during HTML conversion

πŸ–ΌοΈ Image and Document Optimizer

πŸ–ΌοΈ Image Optimizer

  • JPEG 2000:
    • SetTileSize() for tile control
    • New e_ImageCompressQualityLossless option
  • ZIP compression via e_ImageCompressZip
  • More options for monochrome compression via MonoImageSettings

πŸ“‰ Document Optimizer

  • OptimizeScannedPDF() for scan-heavy file compression
  • ComputeAuditSpace() calculates optimization potential
  • Enhanced cleanup via new enums
  • SetSubsetAllEmFonts() for unembedded font subsetting

πŸ“Š Table Generator

  • GetNewPageBasicInfo() callback added to retrieve rendered table height on new pages

Bug Fixes

πŸ“„ PDF Rendering

  • Fixed PDF/A1-b conversion verification failure caused by transparencies
  • Fixed issue where flattening specific files causes blank pages
  • Fixed issue where progressive rendering with step size 5000 causes missing content
  • Fixed issue where certain files cannot be rendered
  • Fixed issue where prepress preview shows incomplete text for specific documents

οΏ½ OCR and Conversion

  • Fixed issue where PDF OCR conversion takes too long without output
  • Fixed issue where OCR results show ghosting effect
  • Fixed issue where OCR with auxiliary effect interface produces poor results and Word conversion fails
  • Fixed issue where OCR requires Chinese character set on Linux even when OCR language doesn't include Chinese
  • Fixed issue where images are missing in HTML to PDF output file
  • Fixed issue where getGraphicsObjectPosition returns 0 and transparency setting fails
  • Fixed issue where specific HTML content cannot be converted to PDF
  • Fixed issue where HTML2PDF output is incorrect when source HTML has fixed header and footer

🧩 Forms and Annotations

  • Fixed crash issue on foxit::pdf::interform::Field::SetValue after processing 30 pages
  • Fixed issue where created note location and displayed location are inconsistent for certain documents
  • Fixed issue where generated typewriter annotations show red border after editing in editor
  • Fixed issue where screen annotations show black border when BorderInfo is not set

🧷 Structure / Bookmark / Object Issues

  • Fixed issue where value and unit of measure markups are not displayed after importing from XFDF created by Web SDK demo or Foxit PDF Editor
  • Fixed issue where AddText with Arabic text doesn't match expected rendering effect
  • Fixed issue where Type3 text object converted to image object shows blank content
  • Fixed crash issue when filling special position forms in iOS
  • Fixed issue where scanned documents with minimal path elements are incorrectly identified as non-scanned
  • Fixed issue where PDFPage parsing returns empty for certain documents that work in WPS and Adobe

πŸ—‚οΈ Optimization

  • Improved TextPage constructor performance to match version 9.0 speed
  • Fixed issue where optimizer image compression progress rate only shows 0 or 100 percent

πŸ” Security and Compliance

  • Fixed issue where Chinese characters in certificate subject information appear garbled
  • Fixed PDF/A1-b conversion verification failure caused by transparencies

βš™οΈ API and Integration

  • Fixed issue where UpdateHeaderFooter API only updates one header/footer and removes others
  • Fixed syntax errors in TypeScript declaration file of @foxitsoftware/foxit-pdf-sdk-node package
  • Fixed issue where text search and replace reports "any unknown error occurs"
  • Updated developer guide to include Conversion SDK version dependency for PDF to Office in GSDK 10.0 and 10.1
  • Fixed issue where C# bookMark.Title ends with extra null character
  • Fixed issue where concurrent calls to C++ pdfprint show parameter error

🌐 Cross-Platform Support

  • Fixed crash issue when filling special position forms in iOS
  • Fixed issue where StartImportPages imports blank pages
  • Fixed issue where StartImportPages never finishes for certain documents

Keywords

PDF SDK

FAQs

Package last updated on 06 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.