Skip to main content

Foxit PDF SDK For Python3

Project description


Foxit PDF SDK v10.1.0 Release Date: 16 Dec. 2024
==================================================================

New Features and Enhancements
----------------------------------
**PDF3D**
- Support for retrieve and preset 3D views.
- Support for default view reset.
New APIs:
- `GetPresetViewList()`
- `ApplyPresetView()`
- `ResetDefaultView()`

**Compliance**
- Introduced preflight functionality supporting PDF/E and PDF/X standards.
New Classes:
- `Preflight`
- `PDFXCompliance`
- `PDFECompliance`

**Page Analyzer**
- Detect scanned pages.
New API:
- `PDFPage::IsScanned()`

**OCR**
- Enhanced OCR configuration options, including image-based text extraction mode, skew correction, image denoising, and CPU core usage mode.
New Class:
- `foxit::addon::ocr::OCRConfig`
Updated API:
- `Initialize(...is_shared_cpu_cores_mode)`

**Annotation**
- Support for executing JavaScript-based sub-actions in link annotations.
- Added separate transparency settings for border and fill colors.
- Added the ability to retrieve annotations by unique IDs.
Updated API:
- `ExecuteJavaScriptAction(JavaScriptAction)`

New APIs:
- `SetBorderOpacity()`, `GetBorderOpacity()`
- `SetFillOpacity()`, `GetFillOpacity()`
- `GetAnnotsByIdArray()`

**Images**
- Retrieve image orientation.
- Image object creation from Type3 text object.
- Clone 1bpp bitmap from the page image object.
New API:
- `GetOrientation()`
- `ImageObject::CreateFromType3TextObject()`
- `ImageObject::CloneBitmap (page,graphics_objects)`

**Fonts**
- Improved font mapping with an overloaded callback for font family names
New API:
- `FontMapperCallback::MapFont()`

**Rendering**
- Render PDF to PDF print devices on Linux.
- Support for rendering PDF pages to 1bpp bitmap.
New API:
- `Renderer(print_param,dest_pdf_path)`

**Search**
- TextSearch supports regular expressions.
Updated API:
- `TextSearch::SetPattern(key_words,is_regex_search)`

**Text**
- Calculate the required PDF Rect size for strings in RichTextStyle before adding text.
- RichTextStyle allows negative values for char_space and word_space in .
New API:
- `PDFPage::CalculateNewRectForText()`

Updated API:
- `Page::AddText RichTextStyle`

**Watermark**
- Added tiled watermark behavior flags, including printing/display settings.
Updated API:
- `TiledWatermarkSettings(flags)`

**PrintManager**
- Enhanced margin handling for print jobs.
New APIs:
- `SetJobPrintUnitType()`, `GetJobPrintUnitType()`
- `SetJobLeftMargin()`, `GetJobLeftMargin()`
- `SetJobRightMargin()`, `GetJobRightMargin()`
- `SetJobTopMargin()`, `GetJobTopMargin()`
- `SetJobBottomMargin`, `GetJobBottomMargin()`

**DWG2PDF**
- Track conversion progress and control output logs.
- Support for color conversion policies.
New Class:
- `DWG2PDFProgressCallback`
Updated API:
- `DWG2PDFSettingData::is_output_progress`
- `DWG2PDFSettingData::progress_callback`
- `DWG2PDFSettingData::color_policy`

**LibreOffice2pdf**
- Support for multi-threaded conversion via binary engine on Linux.
Updated APIs:
- `Convert::From[Word][Excel][PowerPoint](...fx_binary_engine_path, LibreOffice_User_Profile)`

**Foxit PDF2Office**
- Support for library initialization using a binary program for improved conversion flexibility.
- Introduced more conversion options such as insert page breaks, remove trailing spaces, and output images.
- Support for restricted PDF files conversion.
Updated APIs:
- `PDF2Office::Initialize(library_path,fx_binary_program_path)`
- `PDF2WordSettingData(...enable_generate_page_rendered_break)`
- `PDF2OfficeSettingData (...enable_trailing_space,include_images,)`

New Class and API:
- `ConvertCheckCallback`
- `SetConvertCheckCallback(convert_check_callback)`

**Foxit Office2PDF**
- Officially integrated Foxit Office2PDF as an add-on.
- Support for outline conversion in Word2PDF.
- Introduced wordbook conversion options in Excel2PDF.

New Class:
- `Word2PDFConfig`
- `Excel2PDFConfig`

**API Performance Improvements**
- Significantly improved the Optimizer's performance for documents with a large number of paths. Processing time for the same document has been reduced from 7 minutes to 1 second.
- Greatly enhanced the efficiency of importing files with AcroForms using StartImportPagesFromFilePath. For a 1000-page AcroForm file, the processing time has been reduced from nearly 14 hours to about 20 seconds.

Deprecated Features
---------------------------------------------------------------
- Deprecated `ImageObject::CloneBitmap (Graphics_Objects)` API.

BugFixes
---------------------------------------------------------------
**Table-related**
- Fixed an issue where merging cells with `AddTableToPage()` caused errors.
- Resolved a problem where the fill color did not cover the entire cell when inserting tables using `insertTablePagesToDocument`.

**Page Operations and Importing**
- Fixed an issue where splitting pages with `StartImportPages()` resulted in scrambled content.
- Resolved a data import failure caused by incorrect XML file format detection when using `ImportFromXML()`.
- Fixed a bug where form data remained after removing AcroForm pages with `RemovePage()`.
- Addressed an issue where inserting new PDF pages failed due to inconsistent handling of `CropBox`.

**Text Processing**
- Fixed an issue where extracting text with Chinese characters using `GetPageText()` resulted in errors.
- Resolved text extraction order issues with `GetPageText()` by optimizing the text extraction algorithm.
- Fixed display errors when adding Arabic text using `AddText()`.
- Corrected the RTL display order issue when setting Arabic text with `SetText()`.

**Form Handling**
- Fixed an issue where `PDFPage::Flatten()` failed to flatten static XFA form field data.
- Resolved an issue where dynamic XFA form fields did not retain their state correctly when flattened to PDF.
- Fixed a problem where dynamic XFA documents could not be loaded after triggering certain callback events.
- Addressed an issue where insufficient integer precision led to incorrect form field calculations.

**Search Functionality**
- Fixed an issue where incorrect search results were returned due to the wrong calculation of search keyword order.
- Resolved an exception issue when calling `ReplaceNext()`.

**Rendering and Display**
- Fixed an issue where dashed lines were displayed incorrectly in prepress previews by properly handling fill and stroke colors.
- Resolved prepress preview anomalies caused by separating annotation and page rendering.
- Optimized rendering to fix display issues with background images in paths with soft mask pattern fills.
- Fixed an issue where images inserted via `AddImage()` were mirrored due to missing rotation handling.
- Corrected the problem where graphics object became invisible after calling `SetMatrix()` due to ignored clipping paths.

**Crash Fixes**
- Fixed a crash when opening PDF files containing 3D elements.
- Resolved a crash caused by batch conversion of PDF to PostScript using the `Renderer` class.
- Fixed a crash on Linux when creating new `PDFDoc` objects due to concurrent access.

**Annotations and Watermarks**
- Fixed an issue where annotations in PDF files with missing destination (Dest) information could not retrieve annotation actions correctly.
- Fixed a problem where watermarks were not written to extracted pages after calling `StartExtractPages()`.

**Printing-related**
- [Demo] Fixed an issue in the `pdfprint` demo where printing PDFs with soft masks in the background caused memory issues.
- [PrintManager] Corrected the "Unknown" status display when using the demo print function by adjusting `GetJobStatus()`.
- [PrintManager] Fixed an issue where print tasks were waiting or unable to complete due to the printer failing to call the `GetJob()` function.

**Optimizer and Performance**
- Fixed data loss during optimization due to incorrect font stream handling.
- Resolved garbled text issues during DWG to PDF conversion by supplementing missing font resources, to esnure font integrity.
- Adjusted CMYK image handling to fix color inconsistencies caused by forced conversion to RGB in TIFF images.
- Resolved content loss during TIFF to PDF conversion by improving TIFF data writing.
- Fixed data loss and exceptions in the verification results by improving the `LTVVerifier::Verify()` logic.
- Fixed table recognition error by enhancing the layout recognition engine.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

foxitpdfsdkpython3-10.1.2-cp311-cp311-win_amd64.whl (27.5 MB view details)

Uploaded CPython 3.11Windows x86-64

foxitpdfsdkpython3-10.1.2-cp311-cp311-win32.whl (22.4 MB view details)

Uploaded CPython 3.11Windows x86

foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (46.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (45.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (46.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.12+ x86-64

foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl (44.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.12+ i686

foxitpdfsdkpython3-10.1.2-cp311-cp311-macosx_11_0_arm64.whl (29.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

foxitpdfsdkpython3-10.1.2-cp311-cp311-macosx_10_9_x86_64.whl (33.0 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 81b2e48359cd9b060da9ee877ec4c91146b7ee8c81270f789427e1452da299b6
MD5 739084343649e6b37db88c80d694c7db
BLAKE2b-256 62a8f9eef2ab6388598ac5c575f3f6109b11baf1832446ff92f5ae63cfa1903f

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 19e07151fe2cac6e6182237d4f0010b027e354c1c4ee6a3fc1119b9cc77d5f68
MD5 09ff58b8da1af1f7fac849de2fa61fdb
BLAKE2b-256 ca4c38661ffd99e9113527b8e5ab004ebc8459da662468c76c6a9e0dded3cb0f

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca21792d935f7bafb70b269cd13595b2894d59d7e1de74350fa9b28198cc543f
MD5 fc58fe64e8dbcd32e4c047171cfe5862
BLAKE2b-256 a7918682d25c4da42c464cadb8d4936b52fdab4176cad67f8e64786ebba60b13

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2b093012cc3810973c6585c90e37629bb061018195d768a7c3d08999821f97fd
MD5 89a70df92ec3a565d5b0261598e3b4de
BLAKE2b-256 38c8f6a5e50c2f3a9ddb75fc1456b630f94cc1dad6e75a16c9c83e552e75869a

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 828f1d8c8c012ca463d21277dc0cdd896f5a501ac3dae9b964b78bf3b1f36f95
MD5 237731273971e3d1782d5589d803382a
BLAKE2b-256 9b664c0026daebc926bb086f3100dc30e6daa7b64a442dc590fcbb56d981f516

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 3fb6647079e89692c86da975d9cb4031a489837e235bf7d7576cd1d36d49684c
MD5 b0b1dead73badbb8f686db509c4e2fc6
BLAKE2b-256 55ae4e3c62719f2455819212ec24414646a9b54cdafdda94bbdf17e9627b785e

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2085ba6d8d0ac39eebb2bab9b1eca5607e48ef3f0d8bf3f039967df8286812d0
MD5 e93e90c26b1feeaf23ab7d14a9ecfc65
BLAKE2b-256 27885b661c18e9424264ffb141c85a8cb94f8563d7551045dfb7b1eef346aea5

See more details on using hashes here.

File details

Details for the file foxitpdfsdkpython3-10.1.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for foxitpdfsdkpython3-10.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b8e8a213fc59e53b6e29ae6742dac90169d2d30b6b343d253d9f3293071429cc
MD5 9f6b9563aa5eb3a24f73a2212c531d46
BLAKE2b-256 152275bc406f29129977aa2616864db5a4054ad2e01ef0d4b3e13764a4bcc40c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page