Cargo Features
[dependencies]
pdfium-render = { version = "0.8.26", default-features = false, features = ["image", "bindings", "static", "thread_safe", "libc++", "sync", "paragraph", "flatten", "image_latest", "image_025", "image_024", "image_023", "pdfium_latest", "pdfium_future", "pdfium_6721", "pdfium_6666", "pdfium_6611", "pdfium_6490", "pdfium_6295", "pdfium_6124", "pdfium_6043", "pdfium_5961", "pdfium_use_win32", "pdfium_use_skia", "pdfium_enable_xfa", "pdfium_enable_v8"] }
- default = image, pdfium_latest, thread_safe
-
These default features are set whenever
pdfium-render
is added without
somewhere in the dependency tree.default-features = false - image default = image_latest
-
A synonym for backwards compatibility
Affects
common::PdfPageObjectsCommon.create_image_object
… - bindings build
-
Enables bindgen <=0.69.4
Bindgen 0.70.0 and later cause build failures when compiling to WASM. For more details, see: https://github.com/ajrcarey/pdfium-render/issues/157
- static libc++? libstdc++?
- thread_safe default sync?
- libstdc++ libc++ = static
- sync = thread_safe
- paragraph
-
Affects
page::paragraph
… - flatten
- image_latest image = image_025
-
By default, pdfium-render uses the latest version of the image crate. To explicitly use an older version, select one of the feature flags below when taking pdfium-render as a dependency in your project's Cargo.toml.
- image_025 image_latest?
-
Enables image
- image_024
-
Enables image ^0.24
- image_023
-
Enables image ^0.23
- pdfium_latest default = pdfium_6721
-
PdfiumLibraryBindings supports pinning its API definitions to a specific Pdfium release.
This allows pdfium-render consumers to safely upgrade their pdfium-render dependency without having to simultaneously upgrade their Pdfium dependency.
By default, pdfium-render attempts to bind against the latest released version of the Pdfium API.
To explicitly bind against an older version, select one of the feature flags below when taking pdfium-render as a dependency in your project's Cargo.toml. - pdfium_future = pdfium_enable_v8, pdfium_enable_xfa, pdfium_use_skia
-
Affects
bindings::PdfiumLibraryBindings.FPDFPageObjMark_GetName
,bindings::PdfiumLibraryBindings.FPDFPageObjMark_GetParamKey
,bindings::PdfiumLibraryBindings.FPDFPageObjMark_GetParamStringValue
,bindings::PdfiumLibraryBindings.FPDFPageObjMark_GetParamBlobValue
,bindings::PdfiumLibraryBindings.FPDFPageObjMark_SetBlobParam
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
,bindings::PdfiumLibraryBindings.FPDFFont_GetBaseFontName
,bindings::PdfiumLibraryBindings.FPDFFont_GetFamilyName
,bindings::PdfiumLibraryBindings.FPDFCatalog_SetLanguage
… - pdfium_6721 pdfium_latest
-
Affects
bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
,bindings::PdfiumLibraryBindings.FPDFFont_GetBaseFontName
,bindings::PdfiumLibraryBindings.FPDFFont_GetFamilyName
,bindings::PdfiumLibraryBindings.FPDFCatalog_SetLanguage
… - pdfium_6666
-
Affects
bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
,bindings::PdfiumLibraryBindings.FPDFFont_GetBaseFontName
,bindings::PdfiumLibraryBindings.FPDFFont_GetFamilyName
,bindings::PdfiumLibraryBindings.FPDFCatalog_SetLanguage
… - pdfium_6611
-
Affects
bindings::PdfiumLibraryBindings.FPDFFont_GetFamilyName
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
… - pdfium_6569 pdfium_6555 pdfium_6490
-
Affects
bindings::PdfiumLibraryBindings.FPDFText_GetTextRenderMode
,bindings::PdfiumLibraryBindings.FPDFFont_GetFontName
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
… - pdfium_6406 pdfium_6337 pdfium_6295
-
Affects
bindings::PdfiumLibraryBindings.FPDFText_GetTextRenderMode
,bindings::PdfiumLibraryBindings.FPDFFont_GetFontName
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
… - pdfium_6259 pdfium_6164 pdfium_6124
-
Affects
bindings::PdfiumLibraryBindings.FPDFText_GetTextRenderMode
,bindings::PdfiumLibraryBindings.FPDFFont_GetFontName
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
… - pdfium_6110 pdfium_6084 pdfium_6043
-
Affects
bindings::PdfiumLibraryBindings.FPDFText_GetTextRenderMode
,bindings::PdfiumLibraryBindings.FPDFFont_GetFontName
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
… - pdfium_6015 pdfium_5961
-
Affects
bindings::PdfiumLibraryBindings.FPDFText_GetTextRenderMode
,bindings::PdfiumLibraryBindings.FPDFFont_GetFontName
,bindings::PdfiumLibraryBindings.FPDFBitmap_FillRect
… - pdfium_use_win32
-
Certain Pdfium API functions are only made available when compile time flags are set when the Pdfium binary is compiled. The features below make these functions available in PdfiumLibraryBindings. They correspond to the Pdfium compile time flags _WIN32, PDF_USE_SKIA, PDF_ENABLE_XFA, and PDF_ENABLE_V8.
Enables windows
Affects
bindings::PdfiumLibraryBindings.FPDF_SetPrintMode
,bindings::PdfiumLibraryBindings.FPDF_RenderPage
… - pdfium_use_skia pdfium_future?
-
Affects
bindings::PdfiumLibraryBindings.FPDF_RenderPageSkia
,bindings::PdfiumLibraryBindings.FPDF_FFLDrawSkia
… - pdfium_enable_xfa pdfium_future?
-
Affects
bindings::PdfiumLibraryBindings.FPDF_GetXFAPacketCount
,bindings::PdfiumLibraryBindings.FPDF_GetXFAPacketName
,bindings::PdfiumLibraryBindings.FPDF_GetXFAPacketContent
,bindings::PdfiumLibraryBindings.FPDF_BStr_Init
,bindings::PdfiumLibraryBindings.FPDF_BStr_Set
,bindings::PdfiumLibraryBindings.FPDF_BStr_Clear
… - pdfium_enable_v8 pdfium_future?
-
Affects
bindings::PdfiumLibraryBindings.FPDF_GetRecommendedV8Flags
,bindings::PdfiumLibraryBindings.FPDF_GetArrayBufferAllocatorSharedInstance
…