xberg-pdfium-render 1.1.1

High-level idiomatic Rust wrapper around Pdfium. Fork of pdfium-render with Xberg patches.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub(crate) mod internal {

    use crate::bindgen::FPDF_ACTION;
    use crate::bindings::PdfiumLibraryBindings;
    use crate::pdf::action::PdfActionCommon;

    /// Internal crate-specific functionality common to all [PdfAction] actions.
    pub(crate) trait PdfActionPrivate<'a>: PdfActionCommon<'a> {
        /// Returns the internal `FPDF_ACTION` handle for this [PdfAction].
        #[allow(dead_code)] // ~keep TODO: AJRC - 13/6/24 - remove once handle() function is in use.
        fn handle(&self) -> &FPDF_ACTION;

        /// Returns the [PdfiumLibraryBindings] used by this [PdfAction].
        fn bindings(&self) -> &dyn PdfiumLibraryBindings;
    }
}