pdfkit-rs 0.2.4

Safe Rust bindings for Apple's PDFKit framework — documents, pages, selections, outlines, annotations, destinations, actions, and view state on macOS
Documentation
#![doc = include_str!("../README.md")]
//!
//! ---
//!
//! # API Documentation
//!
//! Safe Rust bindings for Apple's [PDFKit](https://developer.apple.com/documentation/pdfkit)
//! framework on macOS.

#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(
    clippy::cast_possible_truncation,
    clippy::doc_markdown,
    clippy::missing_const_for_fn,
    clippy::missing_errors_doc,
    clippy::module_name_repetitions,
    clippy::must_use_candidate,
    clippy::redundant_pub_crate,
    clippy::return_self_not_must_use,
    clippy::struct_excessive_bools
)]

mod accessibility_node;
mod action;
mod action_goto;
mod action_named;
mod action_remote_goto;
mod action_reset_form;
mod action_url;
mod annotation;
mod annotation_constants;
mod appearance_characteristics;
mod border;
mod destination;
mod document;
mod document_delegate;
mod error;
mod ffi;
mod handle;
mod notifications;
mod outline;
mod page;
mod page_overlay_view;
mod page_overlay_view_provider;
mod selection;
mod thumbnail_view;
mod types;
mod util;
mod view;
mod view_delegate;

pub use accessibility_node::PdfAccessibilityNode;
pub use action::{PdfAction, PdfActionLike};
pub use action_goto::PdfActionGoTo;
pub use action_named::PdfActionNamed;
pub use action_remote_goto::PdfActionRemoteGoTo;
pub use action_reset_form::PdfActionResetForm;
pub use action_url::PdfActionUrl;
pub use annotation::PdfAnnotation;
pub use annotation_constants::{
    PdfAnnotationHighlightingMode, PdfAnnotationKey, PdfAnnotationLineEndingStyle,
    PdfAnnotationSubtype, PdfAnnotationTextIconName, PdfAnnotationWidgetSubtype,
};
pub use appearance_characteristics::PdfAppearanceCharacteristics;
pub use border::PdfBorder;
pub use destination::PdfDestination;
pub use document::PdfDocument;
pub use document_delegate::{PdfDocumentDelegate, PdfDocumentDelegateHandle};
pub use error::{PdfKitError, Result};
pub use notifications::{
    PdfDocumentNotification, PdfDocumentNotificationUserInfoKey, PdfThumbnailViewNotification,
    PdfViewNotification,
};
pub use outline::PdfOutline;
pub use page::PdfPage;
pub use page_overlay_view::PdfPageOverlayView;
pub use page_overlay_view_provider::{
    PdfPageOverlayViewProvider, PdfPageOverlayViewProviderHandle,
};
pub use selection::PdfSelection;
pub use thumbnail_view::PdfThumbnailView;
pub use types::{
    DisplayBox, PdfActionNamedName, PdfAnnotationInfo, PdfAppearanceCharacteristicsInfo,
    PdfAreaOfInterest, PdfBorderInfo, PdfBorderStyle, PdfColor, PdfDestinationInfo,
    PdfDisplayDirection, PdfDisplayMode, PdfDocumentAttributes, PdfDocumentInfo,
    PdfDocumentPermissions, PdfDocumentWriteOptions, PdfEdgeInsets, PdfInterpolationQuality,
    PdfLineStyle, PdfMarkupType, PdfPageImageInitializationOptions, PdfPoint, PdfPrintScalingMode,
    PdfRect, PdfSelectionGranularity, PdfSize, PdfTextAnnotationIconType, PdfTextRange,
    PdfThumbnailLayoutMode, PdfThumbnailViewInfo, PdfViewInfo, PdfWidgetCellState,
    PdfWidgetControlType,
};
pub use view::PdfView;
pub use view_delegate::{PdfViewDelegate, PdfViewDelegateHandle};

/// Re-exports the primary PDFKit wrapper types.
pub mod prelude {
    pub use crate::{
        DisplayBox, PdfAccessibilityNode, PdfAction, PdfActionGoTo, PdfActionNamed,
        PdfActionNamedName, PdfActionRemoteGoTo, PdfActionResetForm, PdfActionUrl, PdfAnnotation,
        PdfAnnotationHighlightingMode, PdfAnnotationInfo, PdfAnnotationKey,
        PdfAnnotationLineEndingStyle, PdfAnnotationSubtype, PdfAnnotationTextIconName,
        PdfAnnotationWidgetSubtype, PdfAppearanceCharacteristics, PdfAppearanceCharacteristicsInfo,
        PdfAreaOfInterest, PdfBorder, PdfBorderInfo, PdfBorderStyle, PdfColor, PdfDestination,
        PdfDestinationInfo, PdfDisplayDirection, PdfDisplayMode, PdfDocument,
        PdfDocumentAttributes, PdfDocumentDelegate, PdfDocumentDelegateHandle, PdfDocumentInfo,
        PdfDocumentNotification, PdfDocumentNotificationUserInfoKey, PdfDocumentPermissions,
        PdfDocumentWriteOptions, PdfEdgeInsets, PdfInterpolationQuality, PdfKitError, PdfLineStyle,
        PdfMarkupType, PdfOutline, PdfPage, PdfPageImageInitializationOptions, PdfPageOverlayView,
        PdfPageOverlayViewProvider, PdfPageOverlayViewProviderHandle, PdfPoint,
        PdfPrintScalingMode, PdfRect, PdfSelection, PdfSelectionGranularity, PdfSize,
        PdfTextAnnotationIconType, PdfTextRange, PdfThumbnailLayoutMode, PdfThumbnailView,
        PdfThumbnailViewInfo, PdfThumbnailViewNotification, PdfView, PdfViewDelegate,
        PdfViewDelegateHandle, PdfViewInfo, PdfViewNotification, PdfWidgetCellState,
        PdfWidgetControlType, Result,
    };
}