Byte-oriented PDF reading, writing, and manipulation toolkit for MoonBit.
Dependencies
flowchart LR
Bytes[PDF bytes] --> Reader[pdf_read_document_from_bytes]
Reader --> Document[PdfDocument]
Document --> Pages[page tree and resources]
Document --> Objects[object table]
Pages --> Content[content operators]
Objects --> Writer[pdf_write_document]
Content --> Writer
Writer --> BytesOut[PDF bytes]moon run --target native cmd/pdflite -- info fixtures/camlpdf/logo.pdf
moon run --target native cmd/pdflite -- info --json fixtures/camlpdf/logo.pdf
moon run --target native cmd/pdflite -- validate fixtures/camlpdf/logo.pdf
moon run --target native cmd/pdflite -- rewrite fixtures/camlpdf/logo.pdf _build/logo-roundtrip.pdf
moon run --target native cmd/pdflite -- merge _build/combined.pdf cover.pdf chapter-1.pdf appendix.pdfmoon run --target native --release --build-only cmd/pdflite
PDFLITE_CLI="$PWD/_build/native/release/build/moonbitlang/pdflite/cmd/pdflite/pdflite.exe" \
PDFLITE_LOGO_PDF="$PWD/fixtures/camlpdf/logo.pdf" \
moon cram test --shell /bin/bash --timeout-seconds 120 tests/crammoon check pdflite
moon test --target native pdflite
moon test --target wasm pdflite///|
test "minimum document round trip" {
let document = try! @pdflite.pdf_minimum_valid_pdf()
let bytes = try! @pdflite.pdf_write_document(document)
let version = try! @reader.pdf_read_header_from_bytes(bytes)
if version.major != 1 || version.minor != 0 {
fail("expected a PDF 1.0 header")
}
let parsed = try! @pdflite.pdf_read_document_from_bytes(bytes)
inspect(try! parsed.endpage(), content="1")
}///|
test "name writer escapes delimiter bytes" {
let name = @core.pdf_name_of_bytes(
try! @core.pdf_bytes_of_int_array([47, 65, 32, 66]),
)
@test.assert_eq(@core.pdf_int_array_of_bytes(@pdflite.pdf_write_name(name)), [
47, 65, 35, 50, 48, 66,
])
}pub(all) enum PdfAddTextFontSource {
PdfAddTextPreMadeFontPack(PdfFontPack)
PdfAddTextExistingNamedFont
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfAddTextFontSource::equal(PdfAddTextFontSource, PdfAddTextFontSource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfAddTextFontSource::not_equal(x : PdfAddTextFontSource, y : PdfAddTextFontSource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfAddTextFontSource::to_json(PdfAddTextFontSource) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfAddTextFontSource::to_repr(PdfAddTextFontSource) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfBookmarkNode::equal(PdfBookmarkNode, PdfBookmarkNode) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfBookmarkNode::not_equal(x : PdfBookmarkNode, y : PdfBookmarkNode) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfBookmarkNode::to_json(PdfBookmarkNode) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfBookmarkNode::to_repr(PdfBookmarkNode) -> Reprpub(all) struct PdfCIDKeyedFont {
basefont : PdfName
composite : PdfCompositeCIDFont
encoding : PdfCMapEncoding
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDKeyedFont::equal(PdfCIDKeyedFont, PdfCIDKeyedFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDKeyedFont::not_equal(x : PdfCIDKeyedFont, y : PdfCIDKeyedFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDKeyedFont::to_json(PdfCIDKeyedFont) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDKeyedFont::to_repr(PdfCIDKeyedFont) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDSystemInfo::equal(PdfCIDSystemInfo, PdfCIDSystemInfo) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDSystemInfo::not_equal(x : PdfCIDSystemInfo, y : PdfCIDSystemInfo) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDSystemInfo::to_json(PdfCIDSystemInfo) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDSystemInfo::to_repr(PdfCIDSystemInfo) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDVerticalWidth::equal(PdfCIDVerticalWidth, PdfCIDVerticalWidth) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDVerticalWidth::not_equal(x : PdfCIDVerticalWidth, y : PdfCIDVerticalWidth) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDVerticalWidth::to_json(PdfCIDVerticalWidth) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCIDVerticalWidth::to_repr(PdfCIDVerticalWidth) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapCodeSpace::equal(PdfCMapCodeSpace, PdfCMapCodeSpace) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapCodeSpace::not_equal(x : PdfCMapCodeSpace, y : PdfCMapCodeSpace) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapCodeSpace::to_json(PdfCMapCodeSpace) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapCodeSpace::to_repr(PdfCMapCodeSpace) -> Reprpub(all) enum PdfCMapEncoding {
PdfPredefinedCMap(PdfName)
PdfCMap(Int)
PdfExternalCMap(Int, PdfParsedCMap)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapEncoding::equal(PdfCMapEncoding, PdfCMapEncoding) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapEncoding::not_equal(x : PdfCMapEncoding, y : PdfCMapEncoding) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapEncoding::to_json(PdfCMapEncoding) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCMapEncoding::to_repr(PdfCMapEncoding) -> Reprpub(all) struct PdfCalculatorFunction {
operations : Array[PdfCalculatorOp]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorFunction::equal(PdfCalculatorFunction, PdfCalculatorFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorFunction::not_equal(x : PdfCalculatorFunction, y : PdfCalculatorFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorFunction::to_json(PdfCalculatorFunction) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorFunction::to_repr(PdfCalculatorFunction) -> Reprpub(all) enum PdfCalculatorOp {
PdfCalculatorInt(Int)
PdfCalculatorFloat(Double)
PdfCalculatorAbs
PdfCalculatorAdd
PdfCalculatorAnd
PdfCalculatorAtan
PdfCalculatorBitshift
PdfCalculatorBool(Bool)
PdfCalculatorCeiling
PdfCalculatorCos
PdfCalculatorCopy
PdfCalculatorCvi
PdfCalculatorCvr
PdfCalculatorSub
PdfCalculatorMul
PdfCalculatorDiv
PdfCalculatorDup
PdfCalculatorExch
PdfCalculatorExp
PdfCalculatorFloor
PdfCalculatorIdiv
PdfCalculatorIf(Array[PdfCalculatorOp])
PdfCalculatorIfElse(Array[PdfCalculatorOp], Array[PdfCalculatorOp])
PdfCalculatorIndex
PdfCalculatorLn
PdfCalculatorLog
PdfCalculatorEq
PdfCalculatorGe
PdfCalculatorGt
PdfCalculatorLe
PdfCalculatorLt
PdfCalculatorMod
PdfCalculatorNe
PdfCalculatorNeg
PdfCalculatorNot
PdfCalculatorOr
PdfCalculatorPop
PdfCalculatorRoll
PdfCalculatorRound
PdfCalculatorSin
PdfCalculatorSqrt
PdfCalculatorTruncate
PdfCalculatorXor
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorOp::equal(PdfCalculatorOp, PdfCalculatorOp) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorOp::not_equal(x : PdfCalculatorOp, y : PdfCalculatorOp) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorOp::to_json(PdfCalculatorOp) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCalculatorOp::to_repr(PdfCalculatorOp) -> Reprpub(all) struct PdfClipContour {
hole : Bool
vertices : Array[PdfClipVertex]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipContour::equal(PdfClipContour, PdfClipContour) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipContour::not_equal(x : PdfClipContour, y : PdfClipContour) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipContour::to_json(PdfClipContour) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipContour::to_repr(PdfClipContour) -> Reprfn PdfClipOperation::clip_polygons(self : PdfClipOperation, subject : PdfClipPolygon, clip : PdfClipPolygon) -> PdfClipPolygon raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipOperation::equal(PdfClipOperation, PdfClipOperation) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipOperation::not_equal(x : PdfClipOperation, y : PdfClipOperation) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipOperation::to_json(PdfClipOperation) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipOperation::to_repr(PdfClipOperation) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipPolygon::equal(PdfClipPolygon, PdfClipPolygon) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipPolygon::not_equal(x : PdfClipPolygon, y : PdfClipPolygon) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipPolygon::to_json(PdfClipPolygon) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipPolygon::to_repr(PdfClipPolygon) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipVertex::equal(PdfClipVertex, PdfClipVertex) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipVertex::not_equal(x : PdfClipVertex, y : PdfClipVertex) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipVertex::to_json(PdfClipVertex) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfClipVertex::to_repr(PdfClipVertex) -> Reprpub(all) enum PdfColourSpace {
PdfDeviceGray
PdfDeviceRGB
PdfDeviceCMYK
PdfCalGray(PdfTristimulusPoint, PdfTristimulusPoint, Double)
PdfCalRGB(PdfTristimulusPoint, PdfTristimulusPoint, Array[Double], Array[Double])
PdfLab(PdfTristimulusPoint, PdfTristimulusPoint, Array[Double])
PdfICCBased(Int, PdfColourSpace, Array[Double], PdfObject?, PdfObject)
PdfIndexed(PdfColourSpace, Array[(Int, Array[Int])])
PdfPattern
PdfPatternWithBaseColourSpace(PdfColourSpace)
PdfSeparation(PdfName, PdfColourSpace, PdfObject)
PdfDeviceN(Array[PdfName], PdfColourSpace, PdfObject, PdfObject)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfColourSpace::equal(PdfColourSpace, PdfColourSpace) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfColourSpace::not_equal(x : PdfColourSpace, y : PdfColourSpace) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfColourSpace::to_json(PdfColourSpace) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfColourSpace::to_repr(PdfColourSpace) -> Reprpub(all) struct PdfCompositeCIDFont {
cid_system_info : PdfCIDSystemInfo
cid_basefont : PdfName
cid_fontdescriptor : PdfFontDescriptor
cid_widths : Array[(Int, Double)]
cid_widths2 : Array[(Int, PdfCIDVerticalWidth)]
cid_default_width : Double
cid_default_width2 : Array[Double]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCompositeCIDFont::equal(PdfCompositeCIDFont, PdfCompositeCIDFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCompositeCIDFont::not_equal(x : PdfCompositeCIDFont, y : PdfCompositeCIDFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCompositeCIDFont::to_json(PdfCompositeCIDFont) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfCompositeCIDFont::to_repr(PdfCompositeCIDFont) -> Reprpub(all) struct PdfContentAxialShading {
axialshading_coords : (Double, Double, Double, Double)
axialshading_domain : (Double, Double)
axialshading_function : Array[PdfFunction]
axialshading_extend : (Bool, Bool)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentAxialShading::equal(PdfContentAxialShading, PdfContentAxialShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentAxialShading::not_equal(x : PdfContentAxialShading, y : PdfContentAxialShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentAxialShading::to_json(PdfContentAxialShading) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentAxialShading::to_repr(PdfContentAxialShading) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentBoundingBox::equal(PdfContentBoundingBox, PdfContentBoundingBox) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentBoundingBox::not_equal(x : PdfContentBoundingBox, y : PdfContentBoundingBox) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentBoundingBox::to_json(PdfContentBoundingBox) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentBoundingBox::to_repr(PdfContentBoundingBox) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentClippingState::equal(PdfContentClippingState, PdfContentClippingState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentClippingState::not_equal(x : PdfContentClippingState, y : PdfContentClippingState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentClippingState::to_json(PdfContentClippingState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentClippingState::to_repr(PdfContentClippingState) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentColourValues::equal(PdfContentColourValues, PdfContentColourValues) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentColourValues::not_equal(x : PdfContentColourValues, y : PdfContentColourValues) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentColourValues::to_json(PdfContentColourValues) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentColourValues::to_repr(PdfContentColourValues) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentDashPattern::equal(PdfContentDashPattern, PdfContentDashPattern) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentDashPattern::not_equal(x : PdfContentDashPattern, y : PdfContentDashPattern) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentDashPattern::to_json(PdfContentDashPattern) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentDashPattern::to_repr(PdfContentDashPattern) -> Reprpub(all) struct PdfContentFunctionShading {
funshading_domain : (Double, Double, Double, Double)
funshading_matrix : TransformMatrix
funshading_function : PdfFunction
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentFunctionShading::equal(PdfContentFunctionShading, PdfContentFunctionShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentFunctionShading::not_equal(x : PdfContentFunctionShading, y : PdfContentFunctionShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentFunctionShading::to_json(PdfContentFunctionShading) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentFunctionShading::to_repr(PdfContentFunctionShading) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentGlyphState::equal(PdfContentGlyphState, PdfContentGlyphState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentGlyphState::not_equal(x : PdfContentGlyphState, y : PdfContentGlyphState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentGlyphState::to_json(PdfContentGlyphState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentGlyphState::to_repr(PdfContentGlyphState) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentInlineTextFilter::equal(PdfContentInlineTextFilter, PdfContentInlineTextFilter) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentInlineTextFilter::not_equal(x : PdfContentInlineTextFilter, y : PdfContentInlineTextFilter) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentInlineTextFilter::to_repr(PdfContentInlineTextFilter) -> Reprpub(all) struct PdfContentJsonEntry {
object : PdfContentObject
state : PdfContentState
bounding_box : PdfContentBoundingBox
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentJsonEntry::equal(PdfContentJsonEntry, PdfContentJsonEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentJsonEntry::not_equal(x : PdfContentJsonEntry, y : PdfContentJsonEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentJsonEntry::to_json(PdfContentJsonEntry) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentJsonEntry::to_repr(PdfContentJsonEntry) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentLexeme::equal(PdfContentLexeme, PdfContentLexeme) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentLexeme::not_equal(x : PdfContentLexeme, y : PdfContentLexeme) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentLexeme::to_json(PdfContentLexeme) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentLexeme::to_repr(PdfContentLexeme) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentMarkedContent::equal(PdfContentMarkedContent, PdfContentMarkedContent) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentMarkedContent::not_equal(x : PdfContentMarkedContent, y : PdfContentMarkedContent) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentMarkedContent::to_json(PdfContentMarkedContent) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentMarkedContent::to_repr(PdfContentMarkedContent) -> Reprpub(all) enum PdfContentObject {
PdfContentGlyphObject(Int, String, String)
PdfContentInlineImageObject
PdfContentImageObject(String)
PdfContentPathObject(PdfDrawnPath)
PdfContentShadingObject(String)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentObject::equal(PdfContentObject, PdfContentObject) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentObject::not_equal(x : PdfContentObject, y : PdfContentObject) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentObject::to_json(PdfContentObject) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentObject::to_repr(PdfContentObject) -> Reprpub(all) struct PdfContentOperatorFrame {
ctm : TransformMatrix
partial_path : PdfContentPartialPath
clipping_path : Array[PdfPath]
path : PdfDrawnPath
path_state : PdfContentPathState
text_state : PdfContentTextState
miter_limit : Double
flatness : Double
alpha_constant_stroke : Double
alpha_constant_non_stroke : Double
alpha_source : Bool
smoothness : Double
stroke_adjustment : Bool
overprint_stroke : Bool
overprint_non_stroke : Bool
overprint_mode : Int
black_generation : PdfObject
undercolour_removal : PdfObject
transfer : PdfObject
halftone : PdfObject
blend_mode : PdfObject
soft_mask : PdfObject
black_point_compensation : String
marked_content_point : PdfContentMarkedContent?
marked_content : Array[PdfContentMarkedContent]
type3_d0 : PdfContentType3D0?
type3_d1 : PdfContentType3D1?
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorFrame::equal(PdfContentOperatorFrame, PdfContentOperatorFrame) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorFrame::not_equal(x : PdfContentOperatorFrame, y : PdfContentOperatorFrame) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorFrame::to_json(PdfContentOperatorFrame) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorFrame::to_repr(PdfContentOperatorFrame) -> Reprpub(all) struct PdfContentOperatorResourceResult {
state : PdfContentOperatorState
entries : Array[PdfContentJsonEntry]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorResourceResult::equal(PdfContentOperatorResourceResult, PdfContentOperatorResourceResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorResourceResult::not_equal(x : PdfContentOperatorResourceResult, y : PdfContentOperatorResourceResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorResourceResult::to_json(PdfContentOperatorResourceResult) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorResourceResult::to_repr(PdfContentOperatorResourceResult) -> Reprpub(all) struct PdfContentOperatorState {
ctm : TransformMatrix
partial_path : PdfContentPartialPath
clipping_path : Array[PdfPath]
path : PdfDrawnPath
path_state : PdfContentPathState
text_state : PdfContentTextState
miter_limit : Double
flatness : Double
alpha_constant_stroke : Double
alpha_constant_non_stroke : Double
alpha_source : Bool
smoothness : Double
stroke_adjustment : Bool
overprint_stroke : Bool
overprint_non_stroke : Bool
overprint_mode : Int
black_generation : PdfObject
undercolour_removal : PdfObject
transfer : PdfObject
halftone : PdfObject
blend_mode : PdfObject
soft_mask : PdfObject
black_point_compensation : String
marked_content_point : PdfContentMarkedContent?
marked_content : Array[PdfContentMarkedContent]
type3_d0 : PdfContentType3D0?
type3_d1 : PdfContentType3D1?
state_stack : Array[PdfContentOperatorFrame]
} derive(Eq, ToJson, Debug)fn PdfContentOperatorState::content_apply_core_op(self : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn PdfContentOperatorState::content_apply_graphics_parameter_op(self : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn PdfContentOperatorState::content_apply_graphics_state_op(self : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn PdfContentOperatorState::content_apply_marked_content_op(self : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn PdfContentOperatorState::content_apply_text_show_op(self : PdfContentOperatorState, font : PdfFont, op : PdfContentOp) -> PdfContentOperatorTextResult raise PdfErrorfn PdfContentOperatorState::content_apply_type3_metrics_op(self : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn PdfContentOperatorState::content_image_entry(self : PdfContentOperatorState, name : PdfName) -> PdfContentJsonEntryfn PdfContentOperatorState::content_inline_image_entry(self : PdfContentOperatorState) -> PdfContentJsonEntryfn PdfContentOperatorState::content_path_entry(self : PdfContentOperatorState, stroking : Bool) -> PdfContentJsonEntry?fn PdfContentOperatorState::content_shading_entry(self : PdfContentOperatorState, name : PdfName, shading_bbox : PdfRectangle?) -> PdfContentJsonEntry?fn PdfContentOperatorState::content_text_glyph_entry(self : PdfContentOperatorState, font : PdfFont, glyph : PdfContentTextGlyphPlacement) -> PdfContentJsonEntry raise PdfErrorfn PdfContentOperatorState::content_unit_square_bounding_box(self : PdfContentOperatorState) -> PdfContentBoundingBox#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorState::equal(PdfContentOperatorState, PdfContentOperatorState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorState::not_equal(x : PdfContentOperatorState, y : PdfContentOperatorState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorState::to_json(PdfContentOperatorState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorState::to_repr(PdfContentOperatorState) -> Reprpub(all) struct PdfContentOperatorTextResult {
state : PdfContentOperatorState
entries : Array[PdfContentJsonEntry]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorTextResult::equal(PdfContentOperatorTextResult, PdfContentOperatorTextResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorTextResult::not_equal(x : PdfContentOperatorTextResult, y : PdfContentOperatorTextResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorTextResult::to_json(PdfContentOperatorTextResult) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentOperatorTextResult::to_repr(PdfContentOperatorTextResult) -> Reprpub(all) struct PdfContentPathState {
clipping_path : Array[PdfPath]
colourspace_stroke : PdfColourSpace
colourspace_non_stroke : PdfColourSpace
colour_stroke : PdfContentColourValues
colour_non_stroke : PdfContentColourValues
line_width : Double
line_cap : Int
line_join : Int
dash_pattern : PdfContentDashPattern
rendering_intent : String
} derive(Eq, ToJson, Debug)fn PdfContentPathState::content_apply_path_state_op(self : PdfContentPathState, op : PdfContentOp) -> PdfContentPathStatefn PdfContentPathState::content_with_clipping_path(self : PdfContentPathState, clipping_path : ArrayView[PdfPath]) -> PdfContentPathState#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPathState::equal(PdfContentPathState, PdfContentPathState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPathState::not_equal(x : PdfContentPathState, y : PdfContentPathState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPathState::to_json(PdfContentPathState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPathState::to_repr(PdfContentPathState) -> Reprpub(all) enum PdfContentPattern {
PdfContentColouredTilingPattern(PdfContentTiling)
PdfContentUncolouredTilingPattern(PdfContentTiling)
PdfContentShadingPattern(PdfContentShading)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPattern::equal(PdfContentPattern, PdfContentPattern) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPattern::not_equal(x : PdfContentPattern, y : PdfContentPattern) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPattern::to_json(PdfContentPattern) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentPattern::to_repr(PdfContentPattern) -> Reprpub(all) struct PdfContentRadialShading {
radialshading_coords : (Double, Double, Double, Double, Double, Double)
radialshading_domain : (Double, Double)
radialshading_function : Array[PdfFunction]
radialshading_extend : (Bool, Bool)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentRadialShading::equal(PdfContentRadialShading, PdfContentRadialShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentRadialShading::not_equal(x : PdfContentRadialShading, y : PdfContentRadialShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentRadialShading::to_json(PdfContentRadialShading) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentRadialShading::to_repr(PdfContentRadialShading) -> Reprpub(all) struct PdfContentShading {
shading_colourspace : PdfObject
shading_background : PdfObject?
shading_bbox : PdfObject?
shading_antialias : Bool
shading_matrix : TransformMatrix
shading_extgstate : PdfObject
shading : PdfContentShadingKind
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShading::equal(PdfContentShading, PdfContentShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShading::not_equal(x : PdfContentShading, y : PdfContentShading) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShading::to_json(PdfContentShading) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShading::to_repr(PdfContentShading) -> Reprpub(all) enum PdfContentShadingKind {
PdfContentFunctionShading(PdfContentFunctionShading)
PdfContentAxialShading(PdfContentAxialShading)
PdfContentRadialShading(PdfContentRadialShading)
PdfContentFreeFormGouraudShading
PdfContentLatticeFormGouraudShading
PdfContentCoonsPatchMesh
PdfContentTensorProductPatchMesh
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShadingKind::equal(PdfContentShadingKind, PdfContentShadingKind) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShadingKind::not_equal(x : PdfContentShadingKind, y : PdfContentShadingKind) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShadingKind::to_json(PdfContentShadingKind) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentShadingKind::to_repr(PdfContentShadingKind) -> Reprpub(all) enum PdfContentState {
PdfContentStateGlyph(PdfContentGlyphState)
PdfContentStatePath(PdfContentPathState)
PdfContentStateClipping(PdfContentClippingState)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentState::equal(PdfContentState, PdfContentState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentState::not_equal(x : PdfContentState, y : PdfContentState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentState::to_json(PdfContentState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentState::to_repr(PdfContentState) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextFontCacheEntry::equal(PdfContentTextFontCacheEntry, PdfContentTextFontCacheEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextFontCacheEntry::not_equal(x : PdfContentTextFontCacheEntry, y : PdfContentTextFontCacheEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextFontCacheEntry::to_json(PdfContentTextFontCacheEntry) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextFontCacheEntry::to_repr(PdfContentTextFontCacheEntry) -> Reprpub(all) struct PdfContentTextGlyphPlacement {
charcode : Int
text_matrix : TransformMatrix
width : Double
pvx : Double
pvy : Double
advance_x : Double
advance_y : Double
bounding_box : PdfContentBoundingBox
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextGlyphPlacement::equal(PdfContentTextGlyphPlacement, PdfContentTextGlyphPlacement) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextGlyphPlacement::not_equal(x : PdfContentTextGlyphPlacement, y : PdfContentTextGlyphPlacement) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextGlyphPlacement::to_json(PdfContentTextGlyphPlacement) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextGlyphPlacement::to_repr(PdfContentTextGlyphPlacement) -> Reprpub(all) struct PdfContentTextLayout {
font_size : Double
horizontal_scaling : Double
character_spacing : Double
word_spacing : Double
rise : Double
ctm : TransformMatrix
text_matrix : TransformMatrix
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayout::equal(PdfContentTextLayout, PdfContentTextLayout) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayout::not_equal(x : PdfContentTextLayout, y : PdfContentTextLayout) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayout::to_json(PdfContentTextLayout) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayout::to_repr(PdfContentTextLayout) -> Reprpub(all) struct PdfContentTextLayoutResult {
glyphs : Array[PdfContentTextGlyphPlacement]
text_matrix : TransformMatrix
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayoutResult::equal(PdfContentTextLayoutResult, PdfContentTextLayoutResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayoutResult::not_equal(x : PdfContentTextLayoutResult, y : PdfContentTextLayoutResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayoutResult::to_json(PdfContentTextLayoutResult) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextLayoutResult::to_repr(PdfContentTextLayoutResult) -> Reprpub(all) struct PdfContentTextOpResult {
text_state : PdfContentTextState
glyphs : Array[PdfContentTextGlyphPlacement]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextOpResult::equal(PdfContentTextOpResult, PdfContentTextOpResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextOpResult::not_equal(x : PdfContentTextOpResult, y : PdfContentTextOpResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextOpResult::to_json(PdfContentTextOpResult) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextOpResult::to_repr(PdfContentTextOpResult) -> Reprpub(all) struct PdfContentTextState {
character_spacing : Double
word_spacing : Double
horizontal_scaling : Double
leading : Double
font : String
current_font : PdfFont
font_cache : Array[PdfContentTextFontCacheEntry]
font_size : Double
rendering_mode : Int
rise : Double
knockout : Bool
text_matrix : TransformMatrix
line_matrix : TransformMatrix
} derive(Eq, ToJson, Debug)fn PdfContentTextState::content_apply_text_op(self : PdfContentTextState, font : PdfFont, ctm : TransformMatrix, op : PdfContentOp) -> PdfContentTextOpResultfn PdfContentTextState::content_apply_text_state_op(self : PdfContentTextState, op : PdfContentOp) -> PdfContentTextStatefn PdfContentTextState::content_cache_font(self : PdfContentTextState, name : String, font : PdfFont) -> PdfContentTextStatefn PdfContentTextState::content_glyph_state(self : PdfContentTextState, clipping_path : ArrayView[PdfPath]) -> PdfContentGlyphStatefn PdfContentTextState::content_text_layout(self : PdfContentTextState, ctm : TransformMatrix) -> PdfContentTextLayout#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextState::equal(PdfContentTextState, PdfContentTextState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextState::not_equal(x : PdfContentTextState, y : PdfContentTextState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextState::to_json(PdfContentTextState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTextState::to_repr(PdfContentTextState) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTiling::equal(PdfContentTiling, PdfContentTiling) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTiling::not_equal(x : PdfContentTiling, y : PdfContentTiling) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTiling::to_json(PdfContentTiling) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentTiling::to_repr(PdfContentTiling) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D0::equal(PdfContentType3D0, PdfContentType3D0) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D0::not_equal(x : PdfContentType3D0, y : PdfContentType3D0) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D0::to_json(PdfContentType3D0) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D0::to_repr(PdfContentType3D0) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D1::equal(PdfContentType3D1, PdfContentType3D1) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D1::not_equal(x : PdfContentType3D1, y : PdfContentType3D1) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D1::to_json(PdfContentType3D1) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfContentType3D1::to_repr(PdfContentType3D1) -> Reprpub(all) struct PdfDecryptionResult {
document : PdfDocument
denied_permissions : Array[PdfPermission]
} derive(Eq, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDecryptionResult::equal(PdfDecryptionResult, PdfDecryptionResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDecryptionResult::not_equal(x : PdfDecryptionResult, y : PdfDecryptionResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDecryptionResult::to_repr(PdfDecryptionResult) -> Reprpub struct PdfDocument {
major : Int
minor : Int
root : Int
objects : PdfObjects
trailer_dict : PdfObject
was_linearized : Bool
saved_encryption : PdfSavedEncryption?
first_xref : Int
revision_read : Int
} derive(Eq, Debug)fn PdfDocument::add_annotation(self : PdfDocument, page : PdfPage, annotation : PdfAnnotation) -> PdfPage raise PdfErrorfn PdfDocument::add_bookmark_title(self : PdfDocument, filename : String, use_title : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::add_bookmarks(self : PdfDocument, bookmarks : ArrayView[PdfBookmark]) -> PdfDocument raise PdfErrorfn PdfDocument::add_bookmarks_from_json(self : PdfDocument, json : Json, verify? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::add_bookmarks_from_text(self : PdfDocument, data : BytesView, verify? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::add_object_given_number(self : PdfDocument, number : Int, object : PdfObject, generation? : Int) -> Unitfn PdfDocument::add_page_labels(self : PdfDocument, progress : Bool, style : PdfPageLabelStyle, prefix : Bytes?, start_value : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::add_root(self : PdfDocument, page_root_number : Int, extras : ArrayView[(PdfName, PdfObject)]) -> Int raise PdfErrorfn PdfDocument::addtext_bookmark_for_page(self : PdfDocument, bookmarks : ArrayView[PdfBookmark], level : Int, page_number : Int) -> String raise PdfErrorfn PdfDocument::addtext_calc_textwidth(self : PdfDocument, page : PdfPage, font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, text : BytesView) -> Double raise PdfErrorfn PdfDocument::addtext_existing_font_resource(self : PdfDocument, page : PdfPage, fontname : PdfName) -> (PdfName, PdfObject) raise PdfErrorfn PdfDocument::addtext_line_page(self : PdfDocument, page : PdfPage, time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], font_size : Double, text : String, colour : PdfContentColour, position : PdfPosition, relative_to_box? : PdfName, horizontal_offset? : Double, vertical_offset? : Double, shift_x? : Double, shift_y? : Double, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfPage raise PdfErrorfn PdfDocument::addtext_line_widths(self : PdfDocument, page : PdfPage, font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, text : BytesView, expanded_lines : ArrayView[Bytes]) -> PdfAddTextLineWidths raise PdfErrorfn PdfDocument::addtext_opacity_resources(self : PdfDocument, resources : PdfObject, opacity : Double) -> (PdfObject, PdfName?) raise PdfErrorfn PdfDocument::addtext_page_lines(self : PdfDocument, page : PdfPage, time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, relative_to_box? : PdfName, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, shift_x? : Double, shift_y? : Double, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfPage raise PdfErrorfn PdfDocument::addtext_page_rest_with_annotations(self : PdfDocument, rest : PdfObject, annotations : ArrayView[PdfObject]) -> PdfObject raise PdfErrorfn PdfDocument::addtext_pages_with_font(self : PdfDocument, page_numbers : ArrayView[Int], lines : ArrayView[String], time : PdfStrftimeTime, bookmarks : ArrayView[PdfBookmark], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, filename? : String, bates? : Int, bates_pad? : Int?, relative_to_box? : PdfName, shift? : String, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::addtext_prepare_line(self : PdfDocument, page : PdfPage, time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, text : String, position : PdfPosition, relative_to_box? : PdfName, horizontal_offset? : Double, vertical_offset? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, raw? : Bool) -> PdfAddTextPreparedLine raise PdfErrorfn PdfDocument::addtext_rectangle(self : PdfDocument, page_numbers : ArrayView[Int], coord : String, colour : PdfContentColour, position : PdfPosition, relative_to_box? : PdfName, outline? : Bool, line_width? : Double, opacity? : Double, underneath? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::addtext_replacement_values(self : PdfDocument, bookmarks : ArrayView[PdfBookmark], page_number : Int, end_page : Int, filename : String, bates : Int, bates_pad : Int?) -> PdfAddTextReplacementValues raise PdfErrorfn PdfDocument::addtext_resource_setup(self : PdfDocument, page : PdfPage, font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], opacity : Double) -> PdfAddTextResourceSetup raise PdfErrorfn PdfDocument::addtext_selected_font_object(self : PdfDocument, font : PdfFont?) -> PdfObject? raise PdfErrorfn PdfDocument::addtext_url_annotation_references(self : PdfDocument, text : String, urls : ArrayView[PdfAddTextUrl], measure : (String) -> Double raise PdfError, origin : Point2, horizontal_offset : Double, vertical_offset : Double, justification_offset : Double, rotation : Double, rotation_offset : Point2, page_rotation : Double, font : PdfFont?, fontname : String, font_size : Double, url_border : Bool) -> Array[PdfObject] raise PdfErrorfn PdfDocument::addtext_width_of_existing_font_resource(self : PdfDocument, page : PdfPage, fontname : PdfName, font_size : Double, text : BytesView) -> (PdfName, Double) raise PdfErrorfn PdfDocument::addtexts_with_font(self : PdfDocument, page_numbers : ArrayView[Int], text : String, time : PdfStrftimeTime, bookmarks : ArrayView[PdfBookmark], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, filename? : String, bates? : Int, bates_pad? : Int?, relative_to_box? : PdfName, shift? : String, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::addtexts_with_source(self : PdfDocument, page_numbers : ArrayView[Int], text : String, time : PdfStrftimeTime, bookmarks : ArrayView[PdfBookmark], font_source : PdfAddTextFontSource, fontname : PdfName, font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, filename? : String, bates? : Int, bates_pad? : Int?, relative_to_box? : PdfName, shift? : String, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::all_pages_upright(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bool raise PdfErrorfn PdfDocument::all_pages_upright_only(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bool raise PdfErrorfn PdfDocument::annotations_json(self : PdfDocument, page_numbers : ArrayView[Int]) -> Json raise PdfErrorfn PdfDocument::annotations_json_blob(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn PdfDocument::annotations_of_page(self : PdfDocument, page : PdfPage) -> Array[PdfAnnotation] raise PdfErrorfn PdfDocument::append_page_content(self : PdfDocument, page_numbers : ArrayView[Int], content : BytesView, before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::append_page_content_multiple(self : PdfDocument, contents : ArrayView[Bytes], before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::append_page_content_multiple_ops(self : PdfDocument, op_lists : ArrayView[Array[PdfContentOp]], before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::append_page_content_ops(self : PdfDocument, page_numbers : ArrayView[Int], ops : ArrayView[PdfContentOp], before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::apply_redaction_type(self : PdfDocument, annotation_type : String, page_numbers : ArrayView[Int]) -> Unitfn PdfDocument::attach_file(self : PdfDocument, filename : String, data : BytesView, keep_version? : Bool, page_number? : Int?, relationship? : String?, description? : String?) -> PdfDocument raise PdfErrorfn PdfDocument::black_fills(self : PdfDocument, page_numbers : ArrayView[Int], colour : PdfContentColour) -> PdfDocument raise PdfErrorfn PdfDocument::black_lines(self : PdfDocument, page_numbers : ArrayView[Int], colour : PdfContentColour) -> PdfDocument raise PdfErrorfn PdfDocument::black_text(self : PdfDocument, page_numbers : ArrayView[Int], colour : PdfContentColour) -> PdfDocument raise PdfErrorfn PdfDocument::bookmark_name_of_spec(self : PdfDocument, encoding : PdfMetadataEncoding, bookmarks : ArrayView[PdfBookmark], split_level : Int, spec : String, sequence : Int, filename : String, start_page : Int, end_page : Int) -> String raise PdfErrorfn PdfDocument::bookmarks_json(self : PdfDocument, json_preserve_actions? : Bool) -> Json raise PdfErrorfn PdfDocument::bookmarks_json_blob(self : PdfDocument, json_preserve_actions? : Bool) -> Bytes raise PdfErrorfn PdfDocument::bookmarks_open_to_level(self : PdfDocument, level : Int) -> PdfDocument raise PdfErrorfn PdfDocument::build_name_tree(self : PdfDocument, entries : ArrayView[(Bytes, PdfObject)]) -> PdfObjectfn PdfDocument::build_number_tree(self : PdfDocument, entries : ArrayView[(Int, PdfObject)]) -> PdfObjectfn PdfDocument::center_to_fit(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)]) -> PdfDocument raise PdfErrorfn PdfDocument::center_to_fit_pages(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)]) -> PdfDocument raise PdfErrorfn PdfDocument::change_boxes(self : PdfDocument, page : PdfPage, transform : (Double, Double, Double, Double) -> (Double, Double, Double, Double)) -> PdfPage raise PdfErrorfn PdfDocument::change_id(self : PdfDocument, path : String, get_time : () -> Double) -> Unit raise PdfErrorfn PdfDocument::change_pages(self : PdfDocument, pages : ArrayView[PdfPage], change_references? : Bool, matrices? : ArrayView[(Int, TransformMatrix)], changes? : ArrayView[(Int, Int)]) -> PdfDocument raise PdfErrorfn PdfDocument::change_pattern_matrices_page(self : PdfDocument, matrix : TransformMatrix, page : PdfPage) -> PdfPage raise PdfErrorfn PdfDocument::chop(self : PdfDocument, x : Int, y : Int, columns : Bool, btt : Bool, rtl : Bool, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::chop_hv(self : PdfDocument, is_h : Bool, line : Double, columns : Bool, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::colour_space_components(self : PdfDocument, resources : PdfObject, object : PdfObject) -> Int raise PdfErrorfn PdfDocument::colspace(self : PdfDocument, image : PdfObject, resources : PdfObject) -> PdfColourSpace raise PdfErrorfn PdfDocument::combine_pages(self : PdfDocument, overlay : PdfDocument, fast? : Bool, scale_to_fit? : Bool, overlay_is_under? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::combine_pdf_resources(self : PdfDocument, first : PdfObject, second : PdfObject) -> PdfObjectfn PdfDocument::combine_pdf_rests(self : PdfDocument, first : PdfObject, second : PdfObject) -> PdfObjectfn PdfDocument::composition(self : PdfDocument, file_size : Int) -> Array[PdfCompositionEntry] raise PdfErrorfn PdfDocument::content_apply_extgstate_alpha_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_compositing_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_dash_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorState raise PdfErrorfn PdfDocument::content_apply_extgstate_font_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorState raise PdfErrorfn PdfDocument::content_apply_extgstate_graphics_parameter_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_halftone_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_overprint_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_rendering_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_resource_op(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, _name : PdfName) -> PdfContentOperatorState raise PdfErrorfn PdfDocument::content_apply_extgstate_text_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_extgstate_transfer_op(self : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn PdfDocument::content_apply_font_resource_op(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, font_name : PdfName, font_size : Double) -> PdfContentOperatorState raise PdfErrorfn PdfDocument::content_apply_resource_op(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, op : PdfContentOp) -> PdfContentOperatorResourceResult raise PdfErrorfn PdfDocument::content_apply_text_resource_op(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, op : PdfContentOp) -> PdfContentOperatorTextResult raise PdfErrorfn PdfDocument::content_entries_of_ops(self : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Array[PdfContentJsonEntry] raise PdfErrorfn PdfDocument::content_entries_of_ops_recursive(self : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Array[PdfContentJsonEntry] raise PdfErrorfn PdfDocument::content_entries_of_page(self : PdfDocument, page : PdfPage) -> Array[PdfContentJsonEntry] raise PdfErrorfn PdfDocument::content_filter(self : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp], predicate : (PdfContentJsonEntry) -> Bool) -> Array[PdfContentOp] raise PdfErrorfn PdfDocument::content_form_xobject_enter_state(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentOperatorState? raise PdfErrorfn PdfDocument::content_form_xobject_ops(self : PdfDocument, resources : PdfObject, name : PdfName) -> Array[PdfContentOp]? raise PdfErrorfn PdfDocument::content_form_xobject_resources(self : PdfDocument, resources : PdfObject, name : PdfName) -> PdfObject? raise PdfErrorfn PdfDocument::content_image_entry_from_resources(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentJsonEntry? raise PdfErrorfn PdfDocument::content_json_of_ops(self : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Json raise PdfErrorfn PdfDocument::content_read_axial_shading(self : PdfDocument, shading : PdfObject) -> PdfContentShadingKind raise PdfErrorfn PdfDocument::content_read_function_shading(self : PdfDocument, shading : PdfObject) -> PdfContentShadingKind raise PdfErrorfn PdfDocument::content_read_pattern(self : PdfDocument, resources : PdfObject, name : PdfName) -> PdfContentPattern? raise PdfErrorfn PdfDocument::content_read_radial_shading(self : PdfDocument, shading : PdfObject) -> PdfContentShadingKind raise PdfErrorfn PdfDocument::content_read_shading(self : PdfDocument, shading_matrix : TransformMatrix, shading_extgstate : PdfObject, shading : PdfObject) -> PdfContentShading raise PdfErrorfn PdfDocument::content_read_shading_pattern(self : PdfDocument, pattern : PdfObject) -> PdfContentPattern raise PdfErrorfn PdfDocument::content_shading_entry_from_resources(self : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentJsonEntry?fn PdfDocument::contents_of_name_tree(self : PdfDocument, tree : PdfObject) -> Array[(PdfObject, PdfObject)]fn PdfDocument::copy_annotations_from(self : PdfDocument, source : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::copy_box(self : PdfDocument, page_numbers : ArrayView[Int], from_box : String, to_box : String, mediabox_if_missing? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::copy_font_from(self : PdfDocument, source : PdfDocument, font_name : String, font_page : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::copy_id_from(self : PdfDocument, source : PdfDocument, keep_version? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::copy_page_box(self : PdfDocument, page_numbers : ArrayView[Int], from_box : PdfName, to_box : PdfName, mediabox_if_missing? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::crop_pages(self : PdfDocument, page_numbers : ArrayView[Int], boxes : ArrayView[(Double, Double, Double, Double)], box_name? : PdfName) -> PdfDocument raise PdfErrorfn PdfDocument::crop_pdf_string(self : PdfDocument, page_numbers : ArrayView[Int], boxes : ArrayView[(Double, Double, Double, Double)], box_name? : String) -> PdfDocument raise PdfErrorfn PdfDocument::decrypt_single_stream(self : PdfDocument, object_number : Int, generation : Int, stream : PdfObject, user_password? : BytesView?, owner_password? : BytesView?, no_encrypt_metadata? : Bool) -> PdfObject? raise PdfErrorfn PdfDocument::decrypt_with_owner_password(self : PdfDocument, password : BytesView, no_encrypt_metadata? : Bool) -> PdfDecryptionResult? raise PdfErrorfn PdfDocument::decrypt_with_passwords(self : PdfDocument, user_password? : BytesView?, owner_password? : BytesView?, no_encrypt_metadata? : Bool) -> PdfDecryptionResult? raise PdfErrorfn PdfDocument::decrypt_with_user_password(self : PdfDocument, password : BytesView, no_encrypt_metadata? : Bool) -> PdfDecryptionResult? raise PdfErrorfn PdfDocument::dict_entries_json(self : PdfDocument, key : PdfName, utf8? : Bool) -> Bytes raise PdfErrorfn PdfDocument::dict_entries_json_string(self : PdfDocument, key : String, utf8? : Bool) -> Bytes raise PdfErrorfn PdfDocument::dict_entry_rendered_values(self : PdfDocument, key : PdfName) -> Array[Bytes] raise PdfErrorfn PdfDocument::dict_entry_rendered_values_string(self : PdfDocument, key : String) -> Array[Bytes] raise PdfErrorfn PdfDocument::draft(self : PdfDocument, only_remove : PdfName?, boxes : Bool, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::draw(self : PdfDocument, page_numbers : ArrayView[Int], drawops : ArrayView[PdfDrawOp], struct_tree? : Bool, fast? : Bool, underneath? : Bool, filename? : String, bates? : Int, bates_pad? : Int?, time? : PdfStrftimeTime?, add_artifacts? : Bool, role_map? : String) -> PdfDocument raise PdfErrorfn PdfDocument::draw_special_text_context(self : PdfDocument, page_number : Int, filename? : String, bates? : Int, bates_pad? : Int?, time? : PdfStrftimeTime?) -> PdfDrawSpecialTextContext raise PdfErrorfn PdfDocument::embed_truetype(self : PdfDocument, fontfile : BytesView, fontname : String, codepoints : ArrayView[Int], encoding : PdfEncoding) -> PdfFontPack raise PdfErrorfn PdfDocument::encrypt_128bit(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_128bit_aesv2(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_128bit_aesv2_with_iv_provider(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], iv_provider : (Int, Int, Int) -> Bytes raise PdfError, encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_128bit_r4(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_256bit_aesv3(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], iso? : Bool, encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_256bit_aesv3_iso(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_256bit_aesv3_iso_with_providers(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], random_provider : (PdfAesV3RandomField, Int) -> Bytes raise PdfError, iv_provider : (Int, Int, Int) -> Bytes raise PdfError, encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_256bit_aesv3_with_providers(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], random_provider : (PdfAesV3RandomField, Int) -> Bytes raise PdfError, iv_provider : (Int, Int, Int) -> Bytes raise PdfError, iso? : Bool, encrypt_metadata? : Bool, file_id? : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::encrypt_40bit(self : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], file_id? : BytesView) -> PdfDocument raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDocument::equal(PdfDocument, PdfDocument) -> Boolfn PdfDocument::extract_fontfile_bytes(self : PdfDocument, page_number : Int, font_name : String) -> Bytes? raise PdfErrorfn PdfDocument::extract_images_files(self : PdfDocument, page_numbers : ArrayView[Int], stem : String, encoding? : PdfMetadataEncoding, inline? : Bool, dedup? : Bool, dedup_per_page? : Bool) -> Array[PdfExtractedImageFile] raise PdfErrorfn PdfDocument::extract_single_image_files(self : PdfDocument, object_number : Int, stem : String) -> Array[PdfExtractedImageFile] raise PdfErrorfn PdfDocument::flip_pages_horizontally(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::flip_pages_vertically(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::font_from_name(self : PdfDocument, font_name : String, page_number : Int) -> PdfObject raise PdfErrorfn PdfDocument::font_table(self : PdfDocument, font_name : String, page_number : Int) -> Array[PdfFontTableEntry] raise PdfErrorfn PdfDocument::font_table_text(self : PdfDocument, font_name : String, page_number : Int) -> Bytes raise PdfErrorfn PdfDocument::fonts_json(self : PdfDocument, page_numbers : ArrayView[Int]) -> Json raise PdfErrorfn PdfDocument::fonts_json_blob(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn PdfDocument::get_annotations(self : PdfDocument, encoding? : PdfMetadataEncoding) -> Array[(Int, Bytes)] raise PdfErrorfn PdfDocument::get_image_24bpp(self : PdfDocument, resources : PdfObject, image : PdfObject) -> PdfImage raise PdfErrorfn PdfDocument::hard_box(self : PdfDocument, page_numbers : ArrayView[Int], box_name : PdfName, mediabox_if_missing? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::hard_box_string(self : PdfDocument, page_numbers : ArrayView[Int], box_name : String, mediabox_if_missing? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::has_page_box(self : PdfDocument, page_number : Int, box_name : PdfName) -> Bool raise PdfErrorfn PdfDocument::hasbox_string(self : PdfDocument, page_number : Int, box_name : String) -> Bool raise PdfErrorfn PdfDocument::hflip_pdf(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::image_colour_space(self : PdfDocument, image : PdfObject, resources : PdfObject) -> PdfColourSpace raise PdfErrorfn PdfDocument::image_resolution(self : PdfDocument, page_numbers : ArrayView[Int], dpi : Double, inline? : Bool) -> Array[(Int, String, Int, Int, Double, Double, Int)] raise PdfErrorfn PdfDocument::image_resolution_json(self : PdfDocument, page_numbers : ArrayView[Int], dpi : Double, inline? : Bool) -> Json raise PdfErrorfn PdfDocument::image_resolution_json_blob(self : PdfDocument, page_numbers : ArrayView[Int], dpi : Double, inline? : Bool) -> Bytes raise PdfErrorfn PdfDocument::images_json(self : PdfDocument, page_numbers : ArrayView[Int], inline? : Bool) -> Json raise PdfErrorfn PdfDocument::images_json_blob(self : PdfDocument, page_numbers : ArrayView[Int], inline? : Bool) -> Bytes raise PdfErrorfn PdfDocument::impose(self : PdfDocument, x : Double, y : Double, fit? : Bool, columns? : Bool, rtl? : Bool, btt? : Bool, center? : Bool, margin? : Double, spacing? : Double, line_width? : Double, fast? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::info_blob(self : PdfDocument, encoding? : PdfMetadataEncoding, unit? : PdfUnit) -> Bytes raise PdfErrorfn PdfDocument::info_json(self : PdfDocument, encoding? : PdfMetadataEncoding, unit? : PdfUnit) -> Json raise PdfErrorfn PdfDocument::info_json_blob(self : PdfDocument, encoding? : PdfMetadataEncoding, unit? : PdfUnit) -> Bytes raise PdfErrorfn PdfDocument::iter_objects(self : PdfDocument, callback : (Int, PdfObject) -> Unit raise) -> Unit raisefn PdfDocument::iter_objects_in_order(self : PdfDocument, callback : (Int, PdfObject) -> Unit raise) -> Unit raisefn PdfDocument::iter_objects_with_generation(self : PdfDocument, callback : (Int, Int, PdfObject) -> Unit raise) -> Unit raisefn PdfDocument::iter_pages(self : PdfDocument, page_numbers : ArrayView[Int], process : (Int, PdfPage) -> Unit raise PdfError) -> Unit raise PdfErrorfn PdfDocument::json_of_document(self : PdfDocument, utf8? : Bool, parse_content? : Bool, clean_strings? : Bool, no_stream_data? : Bool, decompress_streams? : Bool) -> Json raise PdfErrorfn PdfDocument::json_of_document_blob(self : PdfDocument, utf8? : Bool, parse_content? : Bool, clean_strings? : Bool, no_stream_data? : Bool, decompress_streams? : Bool) -> Bytes raise PdfErrorfn PdfDocument::json_of_object(self : PdfDocument, object : PdfObject, utf8? : Bool, clean_strings? : Bool, no_stream_data? : Bool, parse_content? : Bool) -> Json raise PdfErrorfn PdfDocument::json_to_output(self : PdfDocument, utf8? : Bool, parse_content? : Bool, no_stream_data? : Bool, decompress_streams? : Bool, clean_strings? : Bool) -> Bytes raise PdfErrorfn PdfDocument::list_annotations(self : PdfDocument, page_numbers : ArrayView[Int], encoding? : PdfMetadataEncoding) -> Bytes raise PdfErrorfn PdfDocument::list_bookmarks(self : PdfDocument, page_numbers : ArrayView[Int], encoding? : PdfMetadataEncoding, json? : Bool, json_preserve_actions? : Bool) -> Bytes raise PdfErrorfn PdfDocument::list_fonts(self : PdfDocument, page_numbers : ArrayView[Int]) -> Array[PdfFontListEntry] raise PdfErrorfn PdfDocument::list_fonts_text(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn PdfDocument::lookup_chain(self : PdfDocument, start : PdfObject, keys : ArrayView[PdfName]) -> PdfObject?fn PdfDocument::lookup_direct_or_array(self : PdfDocument, name : PdfName, object : PdfObject) -> PdfObject?fn PdfDocument::lookup_direct_or_else(self : PdfDocument, first_key : PdfName, second_key : PdfName, object : PdfObject) -> PdfObject?fn PdfDocument::lookup_required(self : PdfDocument, key : PdfName, object : PdfObject, error : PdfError) -> PdfObject raise PdfErrorfn PdfDocument::map_objects_in_place(self : PdfDocument, transform : (PdfObject) -> PdfObject) -> Unitfn[T] PdfDocument::map_pages(self : PdfDocument, page_numbers : ArrayView[Int], process : (Int, PdfPage) -> T raise PdfError) -> Array[T] raise PdfErrorfn PdfDocument::merge_name_trees_no_clash(self : PdfDocument, trees : ArrayView[PdfObject]) -> PdfObjectfn PdfDocument::merge_number_trees_no_clash(self : PdfDocument, trees : ArrayView[PdfObject]) -> PdfObjectfn PdfDocument::missing_fonts(self : PdfDocument, page_numbers : ArrayView[Int]) -> Array[PdfMissingFontEntry] raise PdfErrorfn PdfDocument::missing_fonts_return(self : PdfDocument, page_numbers : ArrayView[Int]) -> Array[(Int, String, String, String, String)] raise PdfErrorfn PdfDocument::missing_fonts_text(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn PdfDocument::name_tree_lookup(self : PdfDocument, key : BytesView, tree : PdfObject) -> PdfObject?fn PdfDocument::name_tree_lookup_object(self : PdfDocument, key : PdfObject, tree : PdfObject) -> PdfObject?#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDocument::not_equal(x : PdfDocument, y : PdfDocument) -> Boolfn PdfDocument::output_page_info(self : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit, json? : Bool, raisejson? : Bool) -> Bytes raise PdfErrorfn PdfDocument::pad_after(self : PdfDocument, page_numbers : ArrayView[Int], pad_with? : PdfDocument?) -> PdfDocument raise PdfErrorfn PdfDocument::pad_before(self : PdfDocument, page_numbers : ArrayView[Int], pad_with? : PdfDocument?) -> PdfDocument raise PdfErrorfn PdfDocument::page_content_json(self : PdfDocument, page_numbers : ArrayView[Int]) -> Json raise PdfErrorfn PdfDocument::page_info_json(self : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit) -> Json raise PdfErrorfn PdfDocument::page_info_json_blob(self : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit) -> Bytes raise PdfErrorfn PdfDocument::page_info_text(self : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit) -> Bytes raise PdfErrorfn PdfDocument::page_number_of_target(self : PdfDocument, destination : PdfDestination) -> Int raise PdfErrorfn PdfDocument::parse_bookmark_json(self : PdfDocument, json : Json, verify? : Bool) -> Array[PdfBookmark] raise PdfErrorfn PdfDocument::parse_bookmark_text(self : PdfDocument, data : BytesView, verify? : Bool) -> Array[PdfBookmark] raise PdfErrorfn PdfDocument::parse_content_bytes_with_resources(self : PdfDocument, resources : PdfObject, data : Bytes) -> Array[PdfContentOp] raise PdfErrorfn PdfDocument::parse_content_ops(self : PdfDocument, streams : ArrayView[PdfObject]) -> Array[PdfContentOp] raise PdfErrorfn PdfDocument::parse_content_ops_with_resources(self : PdfDocument, resources : PdfObject, streams : ArrayView[PdfObject]) -> Array[PdfContentOp] raise PdfErrorfn PdfDocument::parse_content_view_with_resources(self : PdfDocument, resources : PdfObject, data : BytesView) -> Array[PdfContentOp] raise PdfErrorfn PdfDocument::parse_coordinate_rectangle(self : PdfDocument, text : String) -> PdfCoordRectangle raise PdfErrorfn PdfDocument::parse_coordinate_rectangles(self : PdfDocument, text : String) -> Array[PdfCoordRectangle] raise PdfErrorfn PdfDocument::parse_coordinate_tuple(self : PdfDocument, text : String) -> (Double, Double) raise PdfErrorfn PdfDocument::parse_coordinates(self : PdfDocument, text : String) -> Array[Point2] raise PdfErrorfn PdfDocument::parse_coordinates_tuple(self : PdfDocument, text : String) -> Array[(Double, Double)] raise PdfErrorfn PdfDocument::parse_function(self : PdfDocument, function_object : PdfObject) -> PdfFunction raise PdfErrorfn PdfDocument::parse_matrix(self : PdfDocument, key : PdfName, object : PdfObject) -> TransformMatrix raise PdfErrorfn PdfDocument::parse_rectangle(self : PdfDocument, object : PdfObject) -> PdfRectangle raise PdfErrorfn PdfDocument::parse_units_string(self : PdfDocument, page : PdfPage, text : String) -> Array[Double] raise PdfErrorfn PdfDocument::pdf_decode_stream(self : PdfDocument, object : PdfObject) -> PdfObject raise PdfErrorfn PdfDocument::pdf_decode_stream_until_unknown(self : PdfDocument, object : PdfObject) -> PdfObject raise PdfErrorfn PdfDocument::pdf_image_object_of_png_data(self : PdfDocument, data : BytesView) -> PdfObject raise PdfErrorfn PdfDocument::pdf_of_pages(self : PdfDocument, page_numbers : ArrayView[Int], retain_numbering? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::pdf_type_typeset(self : PdfDocument, process_struct_tree : Bool, lmargin : Double, rmargin : Double, tmargin : Double, bmargin : Double, paper : PaperSize, elements : ArrayView[PdfTypeElement]) -> PdfTypeTypesetResult raise PdfErrorfn PdfDocument::portfolio(self : PdfDocument, entries : ArrayView[PdfPortfolioEntry], mod_date? : Bytes?) -> PdfDocument raise PdfErrorfn PdfDocument::postpend_operators(self : PdfDocument, page : PdfPage, ops : ArrayView[PdfContentOp], fast? : Bool) -> PdfPage raise PdfErrorfn PdfDocument::prepend_operators(self : PdfDocument, page : PdfPage, ops : ArrayView[PdfContentOp], fast? : Bool) -> PdfPage raise PdfErrorfn PdfDocument::presentation(self : PdfDocument, range : ArrayView[Int], transition : String?, delay : Double?, horizontal : Bool, inward : Bool, direction : Int, effect_duration : Double) -> PdfDocument raise PdfErrorfn PdfDocument::print_font_table(self : PdfDocument, font_name : String, page_number : Int) -> Bytes raise PdfErrorfn PdfDocument::print_fonts(self : PdfDocument, page_numbers : ArrayView[Int], json? : Bool) -> Bytes raise PdfErrorfn PdfDocument::process_pages(self : PdfDocument, page_numbers : ArrayView[Int], process : (Int, PdfPage) -> (PdfPage, Int, TransformMatrix) raise PdfError) -> PdfDocument raise PdfErrorfn PdfDocument::process_xobjects(self : PdfDocument, page : PdfPage, process : (PdfDocument, PdfObject, ArrayView[PdfObject]) -> Array[PdfObject] raise PdfError) -> Unit raise PdfErrorfn PdfDocument::read_annotation(self : PdfDocument, annotation : PdfObject) -> PdfAnnotation raise PdfErrorfn PdfDocument::read_bookmarks(self : PdfDocument, preserve_actions? : Bool) -> Array[PdfBookmark] raise PdfErrorfn PdfDocument::read_cid_system_info(self : PdfDocument, dictionary : PdfObject) -> PdfCIDSystemInfo raise PdfErrorfn PdfDocument::read_cidkeyed_font(self : PdfDocument, font : PdfObject) -> PdfCIDKeyedFont raise PdfErrorfn PdfDocument::read_colour_space(self : PdfDocument, resources : PdfObject, object : PdfObject) -> PdfColourSpace? raise PdfErrorfn PdfDocument::read_destination(self : PdfDocument, object : PdfObject, shallow? : Bool) -> PdfDestination raise PdfErrorfn PdfDocument::read_font_descriptor(self : PdfDocument, font : PdfObject) -> PdfFontDescriptor? raise PdfErrorfn PdfDocument::read_font_metrics(self : PdfDocument, font : PdfObject) -> Array[Double]? raise PdfErrorfn PdfDocument::read_optional_content_groups(self : PdfDocument) -> PdfOptionalContent? raise PdfErrorfn PdfDocument::read_simple_font(self : PdfDocument, font : PdfObject) -> PdfSimpleFont raise PdfErrorfn PdfDocument::read_standard14_font(self : PdfDocument, font : PdfObject) -> PdfStandardFontData raise PdfErrorfn PdfDocument::recrypt_with_password(self : PdfDocument, password : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::recrypt_with_password_aesv2(self : PdfDocument, password : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::recrypt_with_password_aesv2_with_iv_provider(self : PdfDocument, password : BytesView, iv_provider : (Int, Int, Int) -> Bytes raise PdfError) -> PdfDocument raise PdfErrorfn PdfDocument::recrypt_with_password_aesv3(self : PdfDocument, password : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::recrypt_with_password_aesv3_with_iv_provider(self : PdfDocument, password : BytesView, iv_provider : (Int, Int, Int) -> Bytes raise PdfError) -> PdfDocument raise PdfErrorfn PdfDocument::rectify_boxes(self : PdfDocument, page : PdfPage, fast? : Bool) -> PdfPage raise PdfErrorfn PdfDocument::redact_pages(self : PdfDocument, page_numbers : ArrayView[Int], process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::redact_path(self : PdfDocument, path : ArrayView[(Double, Double)], page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::referenced_object_numbers(self : PdfDocument, object : PdfObject, no_follow_entries? : ArrayView[PdfName], no_follow_contains? : ArrayView[(PdfName, PdfObject)]) -> Array[Int]fn PdfDocument::remove_added_text(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_all_text(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_annotations(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_art(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_bleed(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_clipping(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_cropping(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::remove_dict_entry_everywhere(self : PdfDocument, key : PdfName, search? : PdfObject?) -> Unitfn PdfDocument::remove_dict_entry_string(self : PdfDocument, key : String, search? : PdfObject?) -> Unitfn PdfDocument::remove_page_box(self : PdfDocument, page_numbers : ArrayView[Int], box_name : PdfName) -> PdfDocument raise PdfErrorfn PdfDocument::remove_trim(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::renumber_objects(self : PdfDocument, changes : ArrayView[(Int, Int)]) -> PdfDocument raise PdfErrorfn PdfDocument::renumber_objects_by_offset(self : PdfDocument, offset : Int) -> PdfDocument raise PdfErrorfn PdfDocument::renumber_pages(self : PdfDocument, pages : ArrayView[PdfPage]) -> Array[PdfPage] raise PdfErrorfn PdfDocument::replace_chain(self : PdfDocument, chain : ArrayView[PdfName], value : PdfObject) -> Unit raise PdfErrorfn PdfDocument::replace_dict_entry_everywhere(self : PdfDocument, key : PdfName, value : PdfObject, search? : PdfObject?) -> Unitfn PdfDocument::replace_dict_entry_string(self : PdfDocument, key : String, value : PdfObject, search? : PdfObject?) -> Unitfn PdfDocument::replace_inherit(self : PdfDocument, object_numbers : ArrayView[Int]) -> Unit raise PdfErrorfn PdfDocument::replace_object_by_spec(self : PdfDocument, spec : String, value : PdfObject) -> Unit raise PdfErrorfn PdfDocument::replace_stream_by_spec(self : PdfDocument, spec : String, data : BytesView) -> Unit raise PdfErrorfn PdfDocument::reveal_hidden_text(self : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::rotate_contents(self : PdfDocument, rotation : Double, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::rotate_pages(self : PdfDocument, rotation : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::rotate_pages_by(self : PdfDocument, rotation : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::rotate_pdf(self : PdfDocument, rotation : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::rotate_pdf_by(self : PdfDocument, rotation : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn PdfDocument::scale_contents(self : PdfDocument, page_numbers : ArrayView[Int], position : PdfPosition, scale : Double, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::scale_pages(self : PdfDocument, page_numbers : ArrayView[Int], scales : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::scale_pdf(self : PdfDocument, page_numbers : ArrayView[Int], scales : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::scale_to_fit_pages(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], position? : PdfPosition, input_scale? : Double, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::scale_to_fit_pdf(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], position? : PdfPosition, input_scale? : Double, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::scale_to_fit_rotate(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], rotation : Int, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::scale_to_fit_rotate_pages(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], rotation : Int, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::select_object_numbers(self : PdfDocument, predicate : (PdfObject) -> Bool) -> Array[Int]fn PdfDocument::set_box_string(self : PdfDocument, page_numbers : ArrayView[Int], box_name : String, min_x : Double, max_x : Double, min_y : Double, max_y : Double) -> PdfDocument raise PdfErrorfn PdfDocument::set_info_entry(self : PdfDocument, key : PdfName, value : PdfObject, version : Int, keep_version? : Bool, xmp_also? : Bool, xmp_just_set? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::set_info_entry_string(self : PdfDocument, entry : (String, PdfObject, Int), keep_version? : Bool, xmp_also? : Bool, xmp_just_set? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::set_language(self : PdfDocument, language : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::set_language_string(self : PdfDocument, language : String) -> PdfDocument raise PdfErrorfn PdfDocument::set_mediabox(self : PdfDocument, page_numbers : ArrayView[Int], boxes : ArrayView[(Double, Double, Double, Double)]) -> PdfDocument raise PdfErrorfn PdfDocument::set_mediaboxes(self : PdfDocument, page_numbers : ArrayView[Int], boxes : ArrayView[(Double, Double, Double, Double)]) -> PdfDocument raise PdfErrorfn PdfDocument::set_metadata_from_bytes(self : PdfDocument, data : BytesView, keep_version? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::set_non_full_screen_page_mode(self : PdfDocument, mode : String) -> PdfDocument raise PdfErrorfn PdfDocument::set_open_action(self : PdfDocument, page_number : Int, fit? : Bool, destination? : PdfObject?) -> PdfDocument raise PdfErrorfn PdfDocument::set_open_action_string_destination(self : PdfDocument, page_number : Int, fit? : Bool, destination? : String?) -> PdfDocument raise PdfErrorfn PdfDocument::set_page_box(self : PdfDocument, page_numbers : ArrayView[Int], box_name : PdfName, min_x : Double, max_x : Double, min_y : Double, max_y : Double) -> PdfDocument raise PdfErrorfn PdfDocument::set_viewer_preference(self : PdfDocument, key : PdfName, value : PdfObject, version : Int, keep_version? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::set_viewer_preference_string(self : PdfDocument, entry : (String, PdfObject, Int)) -> PdfDocument raise PdfErrorfn PdfDocument::shift_boxes(self : PdfDocument, page_numbers : ArrayView[Int], offsets : ArrayView[(Double, Double)]) -> PdfDocument raise PdfErrorfn PdfDocument::shift_pages(self : PdfDocument, page_numbers : ArrayView[Int], offsets : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::shift_pdf(self : PdfDocument, page_numbers : ArrayView[Int], offsets : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::show_annotation_bounding_boxes(self : PdfDocument, page_numbers : ArrayView[Int], light? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::show_bounding_boxes(self : PdfDocument, page_numbers : ArrayView[Int], shape? : PdfRectangle?, light? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::show_page_boxes(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::stamp_as_xobject(self : PdfDocument, range : ArrayView[Int], overlay : PdfDocument) -> (PdfDocument, PdfName) raise PdfErrorfn PdfDocument::stamp_pages(self : PdfDocument, page_numbers : ArrayView[Int], overlay : PdfDocument, relative_to_box? : PdfName, position? : PdfPosition, topline? : Bool, midline? : Bool, fast? : Bool, scale_to_fit? : Bool, is_over? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::stamp_pages_string(self : PdfDocument, page_numbers : ArrayView[Int], overlay : PdfDocument, relative_to_box : String, position? : PdfPosition, topline? : Bool, midline? : Bool, fast? : Bool, scale_to_fit? : Bool, is_over? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::stretch(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::stretch_pages(self : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::string_of_pagespec(self : PdfDocument, pages : ArrayView[Int]) -> String raise PdfErrorfn PdfDocument::target_of_page_number(self : PdfDocument, page_number : Int) -> PdfDestination raise PdfErrorfn PdfDocument::test_extract_text(self : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn PdfDocument::test_matterhorn_text(self : PdfDocument, test_name : String) -> Bytes raise PdfErrorfn PdfDocument::text_extractor_of_font(self : PdfDocument, font : PdfObject) -> PdfTextExtractor raise PdfErrorfn PdfDocument::thin_lines(self : PdfDocument, page_numbers : ArrayView[Int], width : Double) -> PdfDocument raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDocument::to_repr(PdfDocument) -> Reprfn PdfDocument::toc_add_bookmark(self : PdfDocument, title : BytesView) -> PdfDocument raise PdfErrorfn PdfDocument::toc_insert_pages(self : PdfDocument, toc_pages : ArrayView[PdfPage], labels : ArrayView[PdfPageLabel]) -> PdfDocument raise PdfErrorfn PdfDocument::toc_type_elements(self : PdfDocument, fontpack : PdfFontPack, font_size : Double, title : BytesView, dotleader : Bool, process_struct_tree : Bool, labels : ArrayView[PdfPageLabel], bookmarks : ArrayView[PdfBookmark], page_width : Double, margin : Double) -> Array[PdfTypeElement] raise PdfErrorfn PdfDocument::toc_typeset_pages(self : PdfDocument, fontpack : PdfFontPack, font_size : Double, title : BytesView, dotleader : Bool, process_struct_tree : Bool, labels : ArrayView[PdfPageLabel], bookmarks : ArrayView[PdfBookmark]) -> PdfTypeTypesetResult raise PdfErrorfn PdfDocument::toc_used_codepoints(self : PdfDocument, labels : ArrayView[PdfPageLabel], title : BytesView, bookmarks : ArrayView[PdfBookmark]) -> Array[Int] raise PdfErrorfn PdfDocument::toc_with_fontpack(self : PdfDocument, fontpack : PdfFontPack, font_size : Double, title : BytesView, bookmark? : Bool, dotleader? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::toc_with_source(self : PdfDocument, source : PdfTocFontSource, font_size : Double, title : BytesView, bookmark? : Bool, dotleader? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::transform_annotations(self : PdfDocument, matrix : TransformMatrix, rest : PdfObject) -> Unit raise PdfErrorfn PdfDocument::transform_bookmark(self : PdfDocument, matrix : TransformMatrix, bookmark : PdfBookmark) -> PdfBookmark raise PdfErrorfn PdfDocument::transform_destination(self : PdfDocument, matrix : TransformMatrix, destination : PdfDestination) -> PdfDestination raise PdfErrorfn PdfDocument::transform_quadpoints(self : PdfDocument, matrix : TransformMatrix, object : PdfObject) -> PdfObjectfn PdfDocument::transform_rect(self : PdfDocument, matrix : TransformMatrix, object : PdfObject) -> PdfObject raise PdfErrorfn PdfDocument::trim_marks(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::trim_structure_tree(self : PdfDocument, page_numbers : ArrayView[Int]) -> Unit raise PdfErrorfn PdfDocument::twoup(self : PdfDocument, fast? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::twoup_stack(self : PdfDocument, fast? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::typeset_table_of_contents(self : PdfDocument, source : PdfTocFontSource, font_size : Double, title : BytesView, bookmark : Bool, dotleader : Bool, process_struct_tree : Bool, subformat? : PdfUASubformat?) -> PdfDocument raise PdfErrorfn PdfDocument::upright(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::upright_pages(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::vflip_pdf(self : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn PdfDocument::write_font(self : PdfDocument, font : PdfFont, objnum? : Int?) -> Int raise PdfErrorfn PdfDocument::write_optional_content_groups(self : PdfDocument, optional_content : PdfOptionalContent) -> PdfDocument raise PdfErrorfn PdfDocument::write_page_labels(self : PdfDocument, labels : ArrayView[PdfPageLabel]) -> PdfDocument raise PdfErrorpub struct PdfDrawControl {
frames : Array[PdfDrawControlFrame]
xobject_bbox : PdfCoordRectangle
font_name : String
font_size : Double
fontpack : PdfFontPack?
fontpack_initialized : Bool
paragraph_indent : Double?
role_map : String
auto_artifacts : Bool
} derive(Eq, ToJson, Debug)fn PdfDrawControl::add_default_fontpack(self : PdfDrawControl, font_name : String) -> Unit raise PdfErrorfn PdfDrawControl::add_element_info(self : PdfDrawControl, key : String, value : PdfObject) -> Unit raise PdfErrorfn PdfDrawControl::add_jpeg2000_data(self : PdfDrawControl, name : String, data : BytesView) -> Unit raise PdfErrorfn PdfDrawControl::add_jpeg_data(self : PdfDrawControl, name : String, data : BytesView) -> Unit raise PdfErrorfn PdfDrawControl::add_line(self : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfErrorfn PdfDrawControl::add_namespace(self : PdfDrawControl, namespace_name : String) -> Unit raise PdfErrorfn PdfDrawControl::add_para(self : PdfDrawControl, document : PdfDocument, spec : String) -> Unit raise PdfErrorfn PdfDrawControl::add_paras(self : PdfDrawControl, document : PdfDocument, spec : String) -> Unit raise PdfErrorfn PdfDrawControl::add_png_data(self : PdfDrawControl, document : PdfDocument, name : String, data : BytesView) -> Unit raise PdfErrorfn PdfDrawControl::add_rect(self : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfErrorfn PdfDrawControl::add_stroke_opacity(self : PdfDrawControl, opacity : Double) -> Unit raise PdfErrorfn PdfDrawControl::add_to(self : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControl::equal(PdfDrawControl, PdfDrawControl) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControl::not_equal(x : PdfDrawControl, y : PdfDrawControl) -> Boolfn PdfDrawControl::set_xobject_bbox_from_string(self : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControl::to_json(PdfDrawControl) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControl::to_repr(PdfDrawControl) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControlFrame::equal(PdfDrawControlFrame, PdfDrawControlFrame) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControlFrame::not_equal(x : PdfDrawControlFrame, y : PdfDrawControlFrame) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControlFrame::to_json(PdfDrawControlFrame) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawControlFrame::to_repr(PdfDrawControlFrame) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawExtGStateResource::equal(PdfDrawExtGStateResource, PdfDrawExtGStateResource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawExtGStateResource::not_equal(x : PdfDrawExtGStateResource, y : PdfDrawExtGStateResource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawExtGStateResource::to_json(PdfDrawExtGStateResource) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawExtGStateResource::to_repr(PdfDrawExtGStateResource) -> Reprpub(all) struct PdfDrawFontPackState {
identifier : String
fontpack : PdfFontPack
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontPackState::equal(PdfDrawFontPackState, PdfDrawFontPackState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontPackState::not_equal(x : PdfDrawFontPackState, y : PdfDrawFontPackState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontPackState::to_json(PdfDrawFontPackState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontPackState::to_repr(PdfDrawFontPackState) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontResource::equal(PdfDrawFontResource, PdfDrawFontResource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontResource::not_equal(x : PdfDrawFontResource, y : PdfDrawFontResource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontResource::to_json(PdfDrawFontResource) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawFontResource::to_repr(PdfDrawFontResource) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawJustification::equal(PdfDrawJustification, PdfDrawJustification) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawJustification::not_equal(x : PdfDrawJustification, y : PdfDrawJustification) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawJustification::to_json(PdfDrawJustification) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawJustification::to_repr(PdfDrawJustification) -> Reprpub(all) enum PdfDrawOp {
PdfDrawRect(Double, Double, Double, Double)
PdfDrawBezier(Double, Double, Double, Double, Double, Double)
PdfDrawBezier23(Double, Double, Double, Double)
PdfDrawBezier13(Double, Double, Double, Double)
PdfDrawTo(Double, Double)
PdfDrawLine(Double, Double)
PdfDrawClosePath
PdfDrawSetFill(PdfDrawColour)
PdfDrawSetStroke(PdfDrawColour)
PdfDrawSetLineThickness(Double)
PdfDrawSetLineCap(Int)
PdfDrawSetLineJoin(Int)
PdfDrawSetMiterLimit(Double)
PdfDrawSetDashPattern(Array[Double], Double)
PdfDrawMatrix(TransformMatrix)
PdfDrawQq(Array[PdfDrawOp])
PdfDrawFill
PdfDrawFillEvenOdd
PdfDrawStroke
PdfDrawFillStroke
PdfDrawFillStrokeEvenOdd
PdfDrawClip
PdfDrawClipEvenOdd
PdfDrawFormXObject(Double, Double, Double, Double, String, Array[PdfDrawOp])
PdfDrawUse(String)
PdfDrawImageXObject(String, PdfObject)
PdfDrawImage(String)
PdfDrawNewPage
PdfDrawOpacity(Double)
PdfDrawSOpacity(Double)
PdfDrawFontPack(String, PdfFontPack, Array[Int])
PdfDrawFont(String, Double)
PdfDrawTextSection(Array[PdfDrawOp])
PdfDrawText(String)
PdfDrawSpecialText(String)
PdfDrawPara(Double?, PdfDrawJustification, Double, Array[String])
PdfDrawNewline
PdfDrawLeading(Double)
PdfDrawCharSpace(Double)
PdfDrawWordSpace(Double)
PdfDrawTextScale(Double)
PdfDrawRenderMode(Int)
PdfDrawRise(Double)
PdfDrawTag(String)
PdfDrawEndTag
PdfDrawSTag(String)
PdfDrawEndSTag
PdfDrawBeginArtifact
PdfDrawEndArtifact
PdfDrawNamespace(String)
PdfDrawEltInfo(String, PdfObject)
PdfDrawEndEltInfo(String)
PdfDrawAutoTag(Bool)
} derive(Eq, ToJson, Debug)fn PdfDrawOp::to_content_ops_with_context(self : PdfDrawOp, state : PdfDrawRenderState, context : PdfDrawSpecialTextContext) -> Array[PdfContentOp] raise PdfErrorfn PdfDrawOp::to_content_ops_with_document(self : PdfDrawOp, state : PdfDrawRenderState, document : PdfDocument) -> Array[PdfContentOp] raise PdfErrorfn PdfDrawOp::to_content_ops_with_document_context(self : PdfDrawOp, state : PdfDrawRenderState, document : PdfDocument, context : PdfDrawSpecialTextContext) -> Array[PdfContentOp] raise PdfErrorfn PdfDrawOp::to_content_ops_with_state(self : PdfDrawOp, state : PdfDrawRenderState) -> Array[PdfContentOp] raise PdfErrorpub(all) struct PdfDrawRenderState {
resource_number : Int
marked_content_id : Int
extgstates : Array[PdfDrawExtGStateResource]
xobjects : Array[PdfDrawXObjectResource]
form_xobjects : Array[PdfDrawXObjectResource]
fonts : Array[PdfDrawFontResource]
fontpacks : Array[PdfDrawFontPackState]
current_fontpack_identifier : String
current_fontpack : PdfFontPack
font_size : Double
structure_tree_enabled : Bool
auto_tag : Bool
structure_page_number : Int
structure_data : Array[PdfDrawStructureData]
page_names : Array[PdfName]
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawRenderState::equal(PdfDrawRenderState, PdfDrawRenderState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawRenderState::not_equal(x : PdfDrawRenderState, y : PdfDrawRenderState) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawRenderState::to_json(PdfDrawRenderState) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawRenderState::to_repr(PdfDrawRenderState) -> Reprpub(all) struct PdfDrawSpecialTextContext {
time : PdfStrftimeTime
replacement_values : PdfAddTextReplacementValues
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawSpecialTextContext::equal(PdfDrawSpecialTextContext, PdfDrawSpecialTextContext) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawSpecialTextContext::not_equal(x : PdfDrawSpecialTextContext, y : PdfDrawSpecialTextContext) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawSpecialTextContext::to_json(PdfDrawSpecialTextContext) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawSpecialTextContext::to_repr(PdfDrawSpecialTextContext) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawStructureData::equal(PdfDrawStructureData, PdfDrawStructureData) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawStructureData::not_equal(x : PdfDrawStructureData, y : PdfDrawStructureData) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawStructureData::to_json(PdfDrawStructureData) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawStructureData::to_repr(PdfDrawStructureData) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawXObjectResource::equal(PdfDrawXObjectResource, PdfDrawXObjectResource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawXObjectResource::not_equal(x : PdfDrawXObjectResource, y : PdfDrawXObjectResource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawXObjectResource::to_json(PdfDrawXObjectResource) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfDrawXObjectResource::to_repr(PdfDrawXObjectResource) -> Reprpub(all) enum PdfEmbedFontSource {
PdfEmbedPreMadeFontPack(PdfFontPack)
PdfEmbedInfo(Bytes, String, PdfEncoding)
PdfEmbedExistingNamedFont
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEmbedFontSource::equal(PdfEmbedFontSource, PdfEmbedFontSource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEmbedFontSource::not_equal(x : PdfEmbedFontSource, y : PdfEmbedFontSource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEmbedFontSource::to_json(PdfEmbedFontSource) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEmbedFontSource::to_repr(PdfEmbedFontSource) -> Reprpub(all) enum PdfEncoding {
PdfImplicitInFontFile
PdfStandardEncoding
PdfMacRomanEncoding
PdfWinAnsiEncoding
PdfMacExpertEncoding
PdfCustomEncoding(PdfEncoding, Array[PdfEncodingDifference])
PdfFillUndefinedWithStandard(PdfEncoding)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncoding::equal(PdfEncoding, PdfEncoding) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncoding::not_equal(x : PdfEncoding, y : PdfEncoding) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncoding::to_json(PdfEncoding) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncoding::to_repr(PdfEncoding) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncodingDifference::equal(PdfEncodingDifference, PdfEncodingDifference) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncodingDifference::not_equal(x : PdfEncodingDifference, y : PdfEncodingDifference) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncodingDifference::to_json(PdfEncodingDifference) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfEncodingDifference::to_repr(PdfEncodingDifference) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfExtractedImageFile::equal(PdfExtractedImageFile, PdfExtractedImageFile) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfExtractedImageFile::not_equal(x : PdfExtractedImageFile, y : PdfExtractedImageFile) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfExtractedImageFile::to_json(PdfExtractedImageFile) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfExtractedImageFile::to_repr(PdfExtractedImageFile) -> Reprpub(all) enum PdfFont {
PdfFontStandard(PdfStandardFontData)
PdfFontSimple(PdfSimpleFont)
PdfFontCIDKeyed(PdfCIDKeyedFont)
} derive(Eq, ToJson, Debug)fn PdfFont::content_text_layout_of_bytes(self : PdfFont, text : BytesView, layout : PdfContentTextLayout) -> PdfContentTextLayoutResultfn PdfFont::content_text_layout_of_tj_array(self : PdfFont, elements : ArrayView[PdfObject], layout : PdfContentTextLayout) -> PdfContentTextLayoutResultpub(all) struct PdfFontDescriptor {
ascent : Double
descent : Double
avgwidth : Double
maxwidth : Double
flags : Int
fontbbox : PdfRectangle
italicangle : Double
capheight : Double
xheight : Double
stemv : Double
fontfile : PdfFontFile?
charset : Array[PdfName]?
tounicode : Array[(Int, Bytes)]?
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontDescriptor::equal(PdfFontDescriptor, PdfFontDescriptor) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontDescriptor::not_equal(x : PdfFontDescriptor, y : PdfFontDescriptor) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontDescriptor::to_json(PdfFontDescriptor) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontDescriptor::to_repr(PdfFontDescriptor) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontFile::equal(PdfFontFile, PdfFontFile) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontFile::not_equal(x : PdfFontFile, y : PdfFontFile) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontFile::to_json(PdfFontFile) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontFile::to_repr(PdfFontFile) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPack::equal(PdfFontPack, PdfFontPack) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPack::not_equal(x : PdfFontPack, y : PdfFontPack) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPack::to_json(PdfFontPack) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPack::to_repr(PdfFontPack) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPackEntry::equal(PdfFontPackEntry, PdfFontPackEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPackEntry::not_equal(x : PdfFontPackEntry, y : PdfFontPackEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPackEntry::to_json(PdfFontPackEntry) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFontPackEntry::to_repr(PdfFontPackEntry) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunction::equal(PdfFunction, PdfFunction) -> Boolfn PdfFunction::eval(self : PdfFunction, inputs : ArrayView[Double]) -> Array[Double] raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunction::not_equal(x : PdfFunction, y : PdfFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunction::to_json(PdfFunction) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunction::to_repr(PdfFunction) -> Reprpub(all) enum PdfFunctionKind {
PdfFunctionSampled(PdfSampledFunction)
PdfFunctionInterpolation(PdfInterpolationFunction)
PdfFunctionStitching(PdfStitchingFunction)
PdfFunctionCalculator(PdfCalculatorFunction)
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunctionKind::equal(PdfFunctionKind, PdfFunctionKind) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunctionKind::not_equal(x : PdfFunctionKind, y : PdfFunctionKind) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunctionKind::to_json(PdfFunctionKind) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfFunctionKind::to_repr(PdfFunctionKind) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfInterpolationFunction::equal(PdfInterpolationFunction, PdfInterpolationFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfInterpolationFunction::not_equal(x : PdfInterpolationFunction, y : PdfInterpolationFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfInterpolationFunction::to_json(PdfInterpolationFunction) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfInterpolationFunction::to_repr(PdfInterpolationFunction) -> Reprpub(all) enum PdfObjectData {
ObjectParsed(PdfObject)
ObjectParsedAlreadyDecrypted(PdfObject)
ObjectToParse
ObjectToParseFromObjectStream(ObjectStreamReference)
} derive(Eq, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectData::equal(PdfObjectData, PdfObjectData) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectData::not_equal(x : PdfObjectData, y : PdfObjectData) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectData::to_repr(PdfObjectData) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectEntry::equal(PdfObjectEntry, PdfObjectEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectEntry::not_equal(x : PdfObjectEntry, y : PdfObjectEntry) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectEntry::to_repr(PdfObjectEntry) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectEvent::equal(PdfObjectEvent, PdfObjectEvent) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectEvent::not_equal(x : PdfObjectEvent, y : PdfObjectEvent) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectEvent::to_repr(PdfObjectEvent) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectMap::equal(PdfObjectMap, PdfObjectMap) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectMap::not_equal(x : PdfObjectMap, y : PdfObjectMap) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjectMap::to_repr(PdfObjectMap) -> Reprpub struct PdfObjects {
max_object_number : Int
object_map : PdfObjectMap
object_stream_ids : HashMap[Int, Int]
log : Array[(Int, PdfObjectEvent)]
} derive(Eq, Debug)fn PdfObjects::add_object_given_number(self : PdfObjects, number : Int, object : PdfObject, generation? : Int) -> Unit#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjects::equal(PdfObjects, PdfObjects) -> Boolfn PdfObjects::map_objects_in_place(self : PdfObjects, transform : (PdfObject) -> PdfObject) -> Unit#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjects::not_equal(x : PdfObjects, y : PdfObjects) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfObjects::to_repr(PdfObjects) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfParsedCMap::equal(PdfParsedCMap, PdfParsedCMap) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfParsedCMap::not_equal(x : PdfParsedCMap, y : PdfParsedCMap) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfParsedCMap::to_json(PdfParsedCMap) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfParsedCMap::to_repr(PdfParsedCMap) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfPixelLayout::equal(PdfPixelLayout, PdfPixelLayout) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfPixelLayout::not_equal(x : PdfPixelLayout, y : PdfPixelLayout) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfPixelLayout::to_json(PdfPixelLayout) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfPixelLayout::to_repr(PdfPixelLayout) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSampledFunction::equal(PdfSampledFunction, PdfSampledFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSampledFunction::not_equal(x : PdfSampledFunction, y : PdfSampledFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSampledFunction::to_json(PdfSampledFunction) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSampledFunction::to_repr(PdfSampledFunction) -> Reprpub(all) struct PdfSimpleFont {
fonttype : PdfSimpleFontType
basefont : PdfName?
firstchar : Int
lastchar : Int
widths : Array[Int]
fontdescriptor : PdfFontDescriptor?
fontmetrics : Array[Double]?
encoding : PdfEncoding
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFont::equal(PdfSimpleFont, PdfSimpleFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFont::not_equal(x : PdfSimpleFont, y : PdfSimpleFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFont::to_json(PdfSimpleFont) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFont::to_repr(PdfSimpleFont) -> Reprpub(all) enum PdfSimpleFontType {
PdfType1
PdfMMType1
PdfType3(PdfType3Glyphs)
PdfTrueType
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFontType::equal(PdfSimpleFontType, PdfSimpleFontType) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFontType::not_equal(x : PdfSimpleFontType, y : PdfSimpleFontType) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFontType::to_json(PdfSimpleFontType) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfSimpleFontType::to_repr(PdfSimpleFontType) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFont::equal(PdfStandardFont, PdfStandardFont) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFont::not_equal(x : PdfStandardFont, y : PdfStandardFont) -> Boolfn PdfStandardFont::text_width(self : PdfStandardFont, encoding : PdfEncoding, text : BytesView, kern? : Bool) -> Int#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFont::to_json(PdfStandardFont) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFont::to_repr(PdfStandardFont) -> Reprpub(all) struct PdfStandardFontData {
font : PdfStandardFont
encoding : PdfEncoding
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFontData::equal(PdfStandardFontData, PdfStandardFontData) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFontData::not_equal(x : PdfStandardFontData, y : PdfStandardFontData) -> Boolfn PdfStandardFontData::text_width(self : PdfStandardFontData, text : BytesView, kern? : Bool) -> Int#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFontData::to_json(PdfStandardFontData) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStandardFontData::to_repr(PdfStandardFontData) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStitchingFunction::equal(PdfStitchingFunction, PdfStitchingFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStitchingFunction::not_equal(x : PdfStitchingFunction, y : PdfStitchingFunction) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStitchingFunction::to_json(PdfStitchingFunction) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStitchingFunction::to_repr(PdfStitchingFunction) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamEncoding::equal(PdfStreamEncoding, PdfStreamEncoding) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamEncoding::not_equal(x : PdfStreamEncoding, y : PdfStreamEncoding) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamEncoding::to_json(PdfStreamEncoding) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamEncoding::to_repr(PdfStreamEncoding) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamPredictor::equal(PdfStreamPredictor, PdfStreamPredictor) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamPredictor::not_equal(x : PdfStreamPredictor, y : PdfStreamPredictor) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamPredictor::to_json(PdfStreamPredictor) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfStreamPredictor::to_repr(PdfStreamPredictor) -> Reprfn PdfTextExtractor::codepoints_of_text(self : PdfTextExtractor, text : BytesView) -> Array[Int] raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextExtractor::equal(PdfTextExtractor, PdfTextExtractor) -> Boolfn PdfTextExtractor::glyphnames_and_codepoints_of_text(self : PdfTextExtractor, text : BytesView) -> Array[PdfTextGlyph] raise PdfErrorfn PdfTextExtractor::glyphnames_of_text(self : PdfTextExtractor, text : BytesView) -> Array[PdfName] raise PdfError#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextExtractor::not_equal(x : PdfTextExtractor, y : PdfTextExtractor) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextExtractor::to_json(PdfTextExtractor) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextExtractor::to_repr(PdfTextExtractor) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextGlyph::equal(PdfTextGlyph, PdfTextGlyph) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextGlyph::not_equal(x : PdfTextGlyph, y : PdfTextGlyph) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextGlyph::to_json(PdfTextGlyph) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTextGlyph::to_repr(PdfTextGlyph) -> Reprpub(all) enum PdfTocFontSource {
PdfTocPreMadeFontPack(PdfFontPack)
PdfTocExistingNamedFont
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTocFontSource::equal(PdfTocFontSource, PdfTocFontSource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTocFontSource::not_equal(x : PdfTocFontSource, y : PdfTocFontSource) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTocFontSource::to_json(PdfTocFontSource) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTocFontSource::to_repr(PdfTocFontSource) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTristimulusPoint::equal(PdfTristimulusPoint, PdfTristimulusPoint) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTristimulusPoint::not_equal(x : PdfTristimulusPoint, y : PdfTristimulusPoint) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTristimulusPoint::to_json(PdfTristimulusPoint) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTristimulusPoint::to_repr(PdfTristimulusPoint) -> Reprpub(all) struct PdfType3Glyphs {
fontbbox : PdfRectangle
fontmatrix : TransformMatrix
charprocs : Array[(PdfName, PdfObject)]
resources : PdfObject
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfType3Glyphs::equal(PdfType3Glyphs, PdfType3Glyphs) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfType3Glyphs::not_equal(x : PdfType3Glyphs, y : PdfType3Glyphs) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfType3Glyphs::to_json(PdfType3Glyphs) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfType3Glyphs::to_repr(PdfType3Glyphs) -> Reprpub(all) enum PdfTypeElement {
PdfTypeText(Bytes)
PdfTypeHGlue(Double)
PdfTypeVGlue(Double)
PdfTypeNewLine
PdfTypeNewPage
PdfTypeFont(String, PdfFont, Double)
PdfTypeBeginDest(PdfDestination, String?)
PdfTypeEndDest
PdfTypeBeginDocument
PdfTypeTag(String, Int)
PdfTypeEndTag
} derive(Eq, ToJson, Debug)#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeElement::equal(PdfTypeElement, PdfTypeElement) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeElement::not_equal(x : PdfTypeElement, y : PdfTypeElement) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeElement::to_json(PdfTypeElement) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeElement::to_repr(PdfTypeElement) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeTypesetResult::equal(PdfTypeTypesetResult, PdfTypeTypesetResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeTypesetResult::not_equal(x : PdfTypeTypesetResult, y : PdfTypeTypesetResult) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeTypesetResult::to_json(PdfTypeTypesetResult) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfTypeTypesetResult::to_repr(PdfTypeTypesetResult) -> Repr#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfUASubformat::equal(PdfUASubformat, PdfUASubformat) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfUASubformat::not_equal(x : PdfUASubformat, y : PdfUASubformat) -> Bool#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfUASubformat::to_json(PdfUASubformat) -> Json#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn PdfUASubformat::to_repr(PdfUASubformat) -> Reprfn pdf_add_annotation(document : PdfDocument, page : PdfPage, annotation : PdfAnnotation) -> PdfPage raise PdfErrorfn pdf_add_bookmark_title(filename : String, use_title : Bool, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_add_bookmarks(bookmarks : ArrayView[PdfBookmark], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_add_bookmarks_from_json(verify : Bool, json : Json, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_add_bookmarks_from_text(verify : Bool, data : BytesView, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_add_page_labels(document : PdfDocument, progress : Bool, style : PdfPageLabelStyle, prefix : Bytes?, start_value : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_add_pagetree(pages : ArrayView[PdfPage], document : PdfDocument) -> (PdfDocument, Int) raise PdfErrorfn pdf_add_root(page_root_number : Int, extras : ArrayView[(PdfName, PdfObject)], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_addjpeg(control : PdfDrawControl, name : String, data : BytesView, path_to_im? : String) -> Unit raise PdfErrorfn pdf_addjpeg2000(control : PdfDrawControl, name : String, data : BytesView) -> Unit raise PdfErrorfn pdf_addline(control : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfErrorfn pdf_addpara(control : PdfDrawControl, document : PdfDocument, spec : String) -> Unit raise PdfErrorfn pdf_addparas(control : PdfDrawControl, document : PdfDocument, spec : String) -> Unit raise PdfErrorfn pdf_addpng(control : PdfDrawControl, document : PdfDocument, name : String, data : BytesView) -> Unit raise PdfErrorfn pdf_addrect(control : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfErrorfn pdf_addrectangle(fast : Bool, coord : String, colour : PdfContentColour, outline : Bool, line_width : Double, opacity : Double, position : PdfPosition, relative_to_box : String, underneath : Bool, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_addtext_baseline_offsets(font : PdfFont?, font_size : Double, position : PdfPosition, rotation : PdfAddTextRotation, midline : Bool, topline : Bool) -> (Double, Double)fn pdf_addtext_bates_number(bates : Int, page_number : Int, bates_pad : Int?) -> Stringfn pdf_addtext_bookmark_for_page(document : PdfDocument, bookmarks : ArrayView[PdfBookmark], level : Int, page_number : Int) -> String raise PdfErrorfn pdf_addtext_calc_textwidth(document : PdfDocument, page : PdfPage, font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, text : BytesView) -> Double raise PdfErrorfn pdf_addtext_expand_lines_with_time(time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)]) -> Array[String] raise PdfErrorfn pdf_addtext_line_page(document : PdfDocument, page : PdfPage, time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], font_size : Double, text : String, colour : PdfContentColour, position : PdfPosition, relative_to_box? : PdfName, horizontal_offset? : Double, vertical_offset? : Double, shift_x? : Double, shift_y? : Double, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfPage raise PdfErrorfn pdf_addtext_line_widths(document : PdfDocument, page : PdfPage, font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, text : BytesView, expanded_lines : ArrayView[Bytes]) -> PdfAddTextLineWidths raise PdfErrorfn pdf_addtext_lines_for_rotation(text : String, rotation : PdfAddTextRotation) -> Array[String] raise PdfErrorfn pdf_addtext_measurement_bytes(font : PdfFont?, fontpack : PdfFontPack?, raw : Bool, text : String) -> Bytes raise PdfErrorfn pdf_addtext_opacity_resources(document : PdfDocument, resources : PdfObject, opacity : Double) -> (PdfObject, PdfName?) raise PdfErrorfn pdf_addtext_page_lines(document : PdfDocument, page : PdfPage, time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, relative_to_box? : PdfName, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, shift_x? : Double, shift_y? : Double, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfPage raise PdfErrorfn pdf_addtext_pages_with_font(document : PdfDocument, page_numbers : ArrayView[Int], lines : ArrayView[String], time : PdfStrftimeTime, bookmarks : ArrayView[PdfBookmark], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, filename? : String, bates? : Int, bates_pad? : Int?, relative_to_box? : PdfName, shift? : String, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfDocument raise PdfErrorfn pdf_addtext_prepare_line(document : PdfDocument, page : PdfPage, time : PdfStrftimeTime, lines : ArrayView[String], replacements : ArrayView[(String, () -> String)], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, text : String, position : PdfPosition, relative_to_box? : PdfName, horizontal_offset? : Double, vertical_offset? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, raw? : Bool) -> PdfAddTextPreparedLine raise PdfErrorfn pdf_addtext_process_text_with_time(time : PdfStrftimeTime, text : String, replacements : ArrayView[(String, () -> String)]) -> Stringfn pdf_addtext_rectangle(document : PdfDocument, page_numbers : ArrayView[Int], coord : String, colour : PdfContentColour, position : PdfPosition, relative_to_box? : PdfName, outline? : Bool, line_width? : Double, opacity? : Double, underneath? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_addtext_rectangle_ops(x : Double, y : Double, width : Double, height : Double, colour : PdfContentColour, outline : Bool, line_width : Double, extgstate_name : PdfName?) -> Array[PdfContentOp]fn pdf_addtext_rectangle_origin(bounds : PdfRectangle, position : PdfPosition, width : Double, height : Double) -> (Double, Double)fn pdf_addtext_replacement_pairs(values : PdfAddTextReplacementValues) -> Array[(String, () -> String)]fn pdf_addtext_replacement_values(document : PdfDocument, bookmarks : ArrayView[PdfBookmark], page_number : Int, end_page : Int, filename : String, bates : Int, bates_pad : Int?) -> PdfAddTextReplacementValues raise PdfErrorfn pdf_addtext_resource_setup(document : PdfDocument, page : PdfPage, font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_object : PdfObject?, fontpack_font_objects : ArrayView[Int], opacity : Double) -> PdfAddTextResourceSetup raise PdfErrorfn pdf_addtext_selected_font_object(document : PdfDocument, font : PdfFont?) -> PdfObject? raise PdfErrorfn pdf_addtext_text_ops(font : PdfFont?, fontpack : PdfFontPack?, x : Double, y : Double, base_rotation : Double, horizontal_offset : Double, vertical_offset : Double, outline : Bool, line_width : Double, unique_fontname : PdfName, unique_fontnames : ArrayView[PdfName], extgstate_name : PdfName?, colour : PdfContentColour, font_size : Double, text : String, text_rotation : Double, rotation_h_offset : Double, rotation_v_offset : Double) -> Array[PdfContentOp] raise PdfErrorfn pdf_addtext_url_annotation_geometry(origin : Point2, horizontal_offset : Double, vertical_offset : Double, justification_offset : Double, rotation : Double, rotation_offset : Point2, page_rotation : Double, start_width : Double, end_width : Double, height : Double) -> PdfAddTextUrlAnnotationGeometryfn pdf_addtext_url_annotation_height(font : PdfFont?, fontname : String, font_size : Double) -> Doublefn pdf_addtext_url_annotation_references(document : PdfDocument, text : String, urls : ArrayView[PdfAddTextUrl], measure : (String) -> Double raise PdfError, origin : Point2, horizontal_offset : Double, vertical_offset : Double, justification_offset : Double, rotation : Double, rotation_offset : Point2, page_rotation : Double, font : PdfFont?, fontname : String, font_size : Double, url_border : Bool) -> Array[PdfObject] raise PdfErrorfn pdf_addtext_url_annotation_widths(text : String, url : PdfAddTextUrl, measure : (String) -> Double) -> (Double, Double) raise PdfErrorfn pdf_addtext_width_of_existing_font_resource(document : PdfDocument, page : PdfPage, fontname : PdfName, font_size : Double, text : BytesView) -> (PdfName, Double) raise PdfErrorfn pdf_addtext_width_of_fontpack(fontpack : PdfFontPack, font_size : Double, text : String) -> Double raise PdfErrorfn pdf_addtext_width_of_selected_font(font : PdfFont, font_size : Double, text : BytesView) -> Doublefn pdf_addtexts_with_font(document : PdfDocument, page_numbers : ArrayView[Int], text : String, time : PdfStrftimeTime, bookmarks : ArrayView[PdfBookmark], font : PdfFont?, fontpack : PdfFontPack?, fontname : PdfName, font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, filename? : String, bates? : Int, bates_pad? : Int?, relative_to_box? : PdfName, shift? : String, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfDocument raise PdfErrorfn pdf_addtexts_with_source(document : PdfDocument, page_numbers : ArrayView[Int], text : String, time : PdfStrftimeTime, bookmarks : ArrayView[PdfBookmark], font_source : PdfAddTextFontSource, fontname : PdfName, font_size : Double, line_spacing : Double, colour : PdfContentColour, position : PdfPosition, filename? : String, bates? : Int, bates_pad? : Int?, relative_to_box? : PdfName, shift? : String, opacity? : Double, justification? : PdfAddTextJustification, rotation? : PdfAddTextRotation, midline? : Bool, topline? : Bool, outline? : Bool, line_width? : Double, underneath? : Bool, fast? : Bool, raw? : Bool, url_border? : Bool) -> PdfDocument raise PdfErrorfn pdf_addto(control : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfErrorfn pdf_allupright_cpdf_order(page_numbers : ArrayView[Int], document : PdfDocument) -> Bool raise PdfErrorfn pdf_alluprightonly_cpdf_order(page_numbers : ArrayView[Int], document : PdfDocument) -> Bool raise PdfErrorfn pdf_annotations_of_page(document : PdfDocument, page : PdfPage) -> Array[PdfAnnotation] raise PdfErrorfn pdf_append_page_content(document : PdfDocument, page_numbers : ArrayView[Int], content : BytesView, before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_append_page_content_cpdf_order(content : BytesView, before : Bool, fast : Bool, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_append_page_content_multiple(document : PdfDocument, contents : ArrayView[Bytes], before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_append_page_content_multiple_cpdf_order(contents : ArrayView[Bytes], before : Bool, fast : Bool, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_append_page_content_multiple_ops(document : PdfDocument, op_lists : ArrayView[Array[PdfContentOp]], before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_append_page_content_multiple_ops_cpdf_order(op_lists : ArrayView[Array[PdfContentOp]], before : Bool, fast : Bool, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_append_page_content_ops(document : PdfDocument, page_numbers : ArrayView[Int], ops : ArrayView[PdfContentOp], before? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_apply_redaction_type(document : PdfDocument, annotation_type : String, page_numbers : ArrayView[Int]) -> Unitfn pdf_apply_type(document : PdfDocument, annotation_type : String, page_numbers : ArrayView[Int]) -> Unitfn pdf_attach_file(document : PdfDocument, filename : String, data : BytesView, keep_version? : Bool, page_number? : Int?, relationship? : String?, description? : String?) -> PdfDocument raise PdfErrorfn pdf_attach_file_cpdf_order(keep_version : Bool, page_number : Int?, document : PdfDocument, relationship : String?, description : String?, filename : String, data : BytesView) -> PdfDocument raise PdfErrorfn pdf_black_fills(document : PdfDocument, page_numbers : ArrayView[Int], colour : PdfContentColour) -> PdfDocument raise PdfErrorfn pdf_black_fills_ops(colour : PdfContentColour, ops : ArrayView[PdfContentOp]) -> Array[PdfContentOp]fn pdf_black_lines(document : PdfDocument, page_numbers : ArrayView[Int], colour : PdfContentColour) -> PdfDocument raise PdfErrorfn pdf_black_lines_ops(colour : PdfContentColour, ops : ArrayView[PdfContentOp]) -> Array[PdfContentOp]fn pdf_black_text(document : PdfDocument, page_numbers : ArrayView[Int], colour : PdfContentColour) -> PdfDocument raise PdfErrorfn pdf_black_text_ops(colour : PdfContentColour, ops : ArrayView[PdfContentOp]) -> Array[PdfContentOp]fn pdf_blackfills(colour : PdfContentColour, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_blacklines(colour : PdfContentColour, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_blacktext(colour : PdfContentColour, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_blank_document(width : Double, height : Double, page_count : Int) -> PdfDocument raise PdfErrorfn pdf_bookmark_name_of_spec(encoding : PdfMetadataEncoding, bookmarks : ArrayView[PdfBookmark], document : PdfDocument, split_level : Int, spec : String, sequence : Int, filename : String, start_page : Int, end_page : Int) -> String raise PdfErrorfn pdf_build_name_tree(is_number : Bool, document : PdfDocument, entries : ArrayView[(Bytes, PdfObject)]) -> PdfObject raise PdfErrorfn pdf_center_to_fit(sizes : ArrayView[(Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_center_to_fit_pages(document : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)]) -> PdfDocument raise PdfErrorfn pdf_change_boxes(document : PdfDocument, page : PdfPage, transform : (Double, Double, Double, Double) -> (Double, Double, Double, Double)) -> PdfPage raise PdfErrorfn pdf_change_boxes_cpdf_order(transform : (Double, Double, Double, Double) -> (Double, Double, Double, Double), document : PdfDocument, page : PdfPage) -> PdfPage raise PdfErrorfn pdf_change_pages(change_references : Bool, document : PdfDocument, pages : ArrayView[PdfPage], matrices? : ArrayView[(Int, TransformMatrix)], changes? : ArrayView[(Int, Int)]) -> PdfDocument raise PdfErrorfn pdf_change_pattern_matrices_page(document : PdfDocument, matrix : TransformMatrix, page : PdfPage) -> PdfPage raise PdfErrorfn pdf_charcode_extractor_of_font(document : PdfDocument, font : PdfObject, debug? : Bool) -> ((Int) -> Int?) raise PdfErrorfn pdf_chop(document : PdfDocument, x : Int, y : Int, columns : Bool, btt : Bool, rtl : Bool, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_chop_cpdf_order(x : Int, y : Int, columns : Bool, btt : Bool, rtl : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_chop_hv(document : PdfDocument, is_h : Bool, line : Double, columns : Bool, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_chop_hv_cpdf_order(is_h : Bool, line : Double, columns : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_clear_progress_output() -> Unitfn pdf_clip_make_polygon(holes : ArrayView[Bool], vertex_arrays : ArrayView[Array[PdfClipVertex]]) -> PdfClipPolygon raise PdfErrorfn pdf_clip_polygon_clip(operation : PdfClipOperation, subject : PdfClipPolygon, clip : PdfClipPolygon) -> PdfClipPolygon raise PdfErrorfn pdf_clip_polygon_of_box(xmin : Double, xmax : Double, ymin : Double, ymax : Double) -> PdfClipPolygonfn pdf_codepoints_of_text(extractor : PdfTextExtractor, text : BytesView) -> Array[Int] raise PdfErrorfn pdf_colour_space_components(document : PdfDocument, resources : PdfObject, object : PdfObject) -> Int raise PdfErrorfn pdf_combine_pages(under : PdfDocument, overlay : PdfDocument, fast? : Bool, scale_to_fit? : Bool, overlay_is_under? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_combine_pages_cpdf_order(process_struct_tree : Bool, fast : Bool, under : PdfDocument, overlay : PdfDocument, scale_to_fit : Bool, overlay_is_under : Bool) -> PdfDocument raise PdfErrorfn pdf_composition(document : PdfDocument, file_size : Int) -> Array[PdfCompositionEntry] raise PdfErrorfn pdf_content_apply_core_op(state : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_alpha_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_compositing_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_dash_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorState raise PdfErrorfn pdf_content_apply_extgstate_font_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorState raise PdfErrorfn pdf_content_apply_extgstate_graphics_parameter_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_halftone_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_overprint_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_rendering_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_resource_op(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentOperatorState raise PdfErrorfn pdf_content_apply_extgstate_text_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_extgstate_transfer_op(document : PdfDocument, state : PdfContentOperatorState, extgstate : PdfObject) -> PdfContentOperatorStatefn pdf_content_apply_font_resource_op(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, font_name : PdfName, font_size : Double) -> PdfContentOperatorState raise PdfErrorfn pdf_content_apply_graphics_parameter_op(state : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn pdf_content_apply_graphics_state_op(state : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn pdf_content_apply_marked_content_op(state : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn pdf_content_apply_path_state_op(state : PdfContentPathState, op : PdfContentOp) -> PdfContentPathStatefn pdf_content_apply_resource_op(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, op : PdfContentOp) -> PdfContentOperatorResourceResult raise PdfErrorfn pdf_content_apply_text_op(state : PdfContentTextState, font : PdfFont, ctm : TransformMatrix, op : PdfContentOp) -> PdfContentTextOpResultfn pdf_content_apply_text_resource_op(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, op : PdfContentOp) -> PdfContentOperatorTextResult raise PdfErrorfn pdf_content_apply_text_show_op(state : PdfContentOperatorState, font : PdfFont, op : PdfContentOp) -> PdfContentOperatorTextResult raise PdfErrorfn pdf_content_apply_text_state_op(state : PdfContentTextState, op : PdfContentOp) -> PdfContentTextStatefn pdf_content_apply_type3_metrics_op(state : PdfContentOperatorState, op : PdfContentOp) -> PdfContentOperatorStatefn pdf_content_clipping_state_of_paths(clipping_path : ArrayView[PdfPath]) -> PdfContentClippingStatefn pdf_content_entries_of_ops(document : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Array[PdfContentJsonEntry] raise PdfErrorfn pdf_content_entries_of_ops_recursive(document : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Array[PdfContentJsonEntry] raise PdfErrorfn pdf_content_entries_of_page(document : PdfDocument, page : PdfPage) -> Array[PdfContentJsonEntry] raise PdfErrorfn pdf_content_filter(document : PdfDocument, predicate : (PdfContentJsonEntry) -> Bool, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Array[PdfContentOp] raise PdfErrorfn pdf_content_form_xobject_enter_state(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentOperatorState? raise PdfErrorfn pdf_content_form_xobject_ops(document : PdfDocument, resources : PdfObject, name : PdfName) -> Array[PdfContentOp]? raise PdfErrorfn pdf_content_form_xobject_resources(document : PdfDocument, resources : PdfObject, name : PdfName) -> PdfObject? raise PdfErrorfn pdf_content_glyph_state_of_text_state(state : PdfContentTextState, clipping_path : ArrayView[PdfPath]) -> PdfContentGlyphStatefn pdf_content_image_entry_from_resources(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentJsonEntry? raise PdfErrorfn pdf_content_initial_clipping_state(minx : Double, miny : Double, maxx : Double, maxy : Double) -> PdfContentClippingStatefn pdf_content_initial_glyph_state(minx : Double, miny : Double, maxx : Double, maxy : Double) -> PdfContentGlyphStatefn pdf_content_initial_operator_state(minx : Double, miny : Double, maxx : Double, maxy : Double) -> PdfContentOperatorStatefn pdf_content_initial_path_state(minx : Double, miny : Double, maxx : Double, maxy : Double) -> PdfContentPathStatefn pdf_content_json_of_ops(document : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Json raise PdfErrorfn pdf_content_path_state_with_clipping_path(state : PdfContentPathState, clipping_path : ArrayView[PdfPath]) -> PdfContentPathStatefn pdf_content_read_pattern(document : PdfDocument, resources : PdfObject, name : PdfName) -> PdfContentPattern? raise PdfErrorfn pdf_content_shading_entry(state : PdfContentOperatorState, name : PdfName, shading_bbox : PdfRectangle?) -> PdfContentJsonEntry?fn pdf_content_shading_entry_from_resources(document : PdfDocument, state : PdfContentOperatorState, resources : PdfObject, name : PdfName) -> PdfContentJsonEntry?fn pdf_content_text_glyph_entry(state : PdfContentOperatorState, font : PdfFont, glyph : PdfContentTextGlyphPlacement) -> PdfContentJsonEntry raise PdfErrorfn pdf_content_text_layout_of_bytes(font : PdfFont, text : BytesView, layout : PdfContentTextLayout) -> PdfContentTextLayoutResultfn pdf_content_text_layout_of_tj_array(font : PdfFont, elements : ArrayView[PdfObject], layout : PdfContentTextLayout) -> PdfContentTextLayoutResultfn pdf_content_to_json(document : PdfDocument, mediabox : PdfRectangle, resources : PdfObject, ops : ArrayView[PdfContentOp]) -> Json raise PdfErrorfn pdf_copy_annotations(page_numbers : ArrayView[Int], source : PdfDocument, target : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_copy_box(from_box : String, to_box : String, mediabox_if_missing : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_copy_font(source : PdfDocument, font_name : String, font_page : Int, page_numbers : ArrayView[Int], target : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_copy_id(keep_version : Bool, copy_from : PdfDocument, copy_to : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_copy_page_box(document : PdfDocument, page_numbers : ArrayView[Int], from_box : PdfName, to_box : PdfName, mediabox_if_missing? : Bool) -> PdfDocument raise PdfErrorfn pdf_crop_pdf(document : PdfDocument, page_numbers : ArrayView[Int], boxes : ArrayView[(Double, Double, Double, Double)], box_name? : PdfName) -> PdfDocument raise PdfErrorfn pdf_crop_pdf_string(boxes : ArrayView[(Double, Double, Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int], box_name? : String) -> PdfDocument raise PdfErrorfn pdf_debug_image_processing() -> Boolfn pdf_decode_predictor(predictor : Int, colors : Int, bits_per_component : Int, columns : Int, data : Bytes) -> Bytes raise PdfErrorfn pdf_decode_predictor_view(predictor : Int, colors : Int, bits_per_component : Int, columns : Int, data : BytesView) -> Bytes raise PdfErrorfn pdf_deterministic_aes_iv_provider_from_seed(seed : BytesView) -> ((Int, Int, Int) -> Bytes raise PdfError)fn pdf_deterministic_aesv3_random_provider_from_seed(seed : BytesView) -> ((PdfAesV3RandomField, Int) -> Bytes raise PdfError)fn pdf_document_of_parsed_indirect_objects(objects : ArrayView[PdfParsedIndirectObject], version? : PdfVersion) -> PdfDocumentfn pdf_draft(only_remove : PdfName?, boxes : Bool, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_draft_string(only_remove : String?, boxes : Bool, page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_draw(document : PdfDocument, page_numbers : ArrayView[Int], drawops : ArrayView[PdfDrawOp], struct_tree? : Bool, fast? : Bool, underneath? : Bool, filename? : String, bates? : Int, bates_pad? : Int?, time? : PdfStrftimeTime?, add_artifacts? : Bool, role_map? : String) -> PdfDocument raise PdfErrorfn pdf_draw_special_text_context(time : PdfStrftimeTime, replacement_values : PdfAddTextReplacementValues) -> PdfDrawSpecialTextContextfn pdf_draw_special_text_context_for_document(document : PdfDocument, page_number : Int, filename? : String, bates? : Int, bates_pad? : Int?, time? : PdfStrftimeTime?) -> PdfDrawSpecialTextContext raise PdfErrorfn pdf_drawop_to_content_ops_with_context(state : PdfDrawRenderState, context : PdfDrawSpecialTextContext, op : PdfDrawOp) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawop_to_content_ops_with_document(state : PdfDrawRenderState, document : PdfDocument, op : PdfDrawOp) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawop_to_content_ops_with_document_context(state : PdfDrawRenderState, document : PdfDocument, context : PdfDrawSpecialTextContext, op : PdfDrawOp) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawop_to_content_ops_with_state(state : PdfDrawRenderState, op : PdfDrawOp) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawops_to_content_ops_with_context(state : PdfDrawRenderState, context : PdfDrawSpecialTextContext, ops : ArrayView[PdfDrawOp]) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawops_to_content_ops_with_document(state : PdfDrawRenderState, document : PdfDocument, ops : ArrayView[PdfDrawOp]) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawops_to_content_ops_with_document_context(state : PdfDrawRenderState, document : PdfDocument, context : PdfDrawSpecialTextContext, ops : ArrayView[PdfDrawOp]) -> Array[PdfContentOp] raise PdfErrorfn pdf_drawops_to_content_ops_with_state(state : PdfDrawRenderState, ops : ArrayView[PdfDrawOp]) -> Array[PdfContentOp] raise PdfErrorfn pdf_embed_truetype(document : PdfDocument, fontfile : BytesView, fontname : String, codepoints : ArrayView[Int], encoding : PdfEncoding) -> PdfFontPack raise PdfErrorfn pdf_encode_predictor(predictor : Int, colors : Int, bits_per_component : Int, columns : Int, data : Bytes) -> Bytes raise PdfErrorfn pdf_encode_predictor_view(predictor : Int, colors : Int, bits_per_component : Int, columns : Int, data : BytesView) -> Bytes raise PdfErrorfn pdf_encode_stream_with_encoding(encoding : PdfStreamEncoding, object : PdfObject, only_if_smaller? : Bool, predictor? : PdfStreamPredictor?, predictor_columns? : Int, flate_level? : Int?) -> PdfObject raise PdfErrorfn pdf_eval_function(function : PdfFunction, inputs : ArrayView[Double]) -> Array[Double] raise PdfErrorfn pdf_expand_date(date : String) -> Stringfn pdf_extract_fontfile_bytes(document : PdfDocument, page_number : Int, font_name : String) -> Bytes? raise PdfErrorfn pdf_font_from_name(document : PdfDocument, font_name : String, page_number : Int) -> PdfObject raise PdfErrorfn pdf_font_table(document : PdfDocument, font_name : String, page_number : Int) -> Array[PdfFontTableEntry] raise PdfErrorfn pdf_font_table_text(document : PdfDocument, font_name : String, page_number : Int) -> Bytes raise PdfErrorfn pdf_fonts_json_blob(document : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn pdf_get_annotations(encoding : PdfMetadataEncoding, document : PdfDocument) -> Array[(Int, Bytes)] raise PdfErrorfn pdf_get_annotations_json(page_numbers : ArrayView[Int], document : PdfDocument) -> Bytes raise PdfErrorfn pdf_get_annotations_json_cpdf_order(document : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn pdf_get_bookmarks_json(json_preserve_actions : Bool, document : PdfDocument) -> Bytes raise PdfErrorfn pdf_get_dict_entries(document : PdfDocument, key : PdfName, utf8? : Bool) -> Bytes raise PdfErrorfn pdf_get_dict_entries_cpdf_order(utf8 : Bool, document : PdfDocument, key : String) -> Bytes raise PdfErrorfn pdf_get_dict_entries_string(document : PdfDocument, key : String, utf8? : Bool) -> Bytes raise PdfErrorfn pdf_get_image_24bpp(document : PdfDocument, resources : PdfObject, image : PdfObject) -> PdfImage raise PdfErrorfn pdf_glyphnames_of_text(extractor : PdfTextExtractor, text : BytesView) -> Array[PdfName] raise PdfErrorfn pdf_gpc_polygon_of_box(xmin : Double, xmax : Double, ymin : Double, ymax : Double) -> PdfClipPolygonfn pdf_gpcml_clippolygon(operation : PdfClipOperation, subject : PdfClipPolygon, clip : PdfClipPolygon) -> PdfClipPolygon raise PdfErrorfn pdf_hard_box(document : PdfDocument, page_numbers : ArrayView[Int], box_name : PdfName, mediabox_if_missing? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_hard_box_string(document : PdfDocument, page_numbers : ArrayView[Int], box_name : String, mediabox_if_missing? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_hasbox_string(document : PdfDocument, page_number : Int, box_name : String) -> Bool raise PdfErrorfn pdf_hflip_pdf(document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_image_colspace(document : PdfDocument, image : PdfObject, resources : PdfObject) -> PdfColourSpace raise PdfErrorfn pdf_image_debug_image_processing() -> Boolfn pdf_image_document_of_jbig2_data(data : BytesView, global? : BytesView?, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_image_document_of_jpeg2000_data(data : BytesView, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_image_document_of_jpeg_data(data : BytesView, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_image_document_of_object(image : PdfObject, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_image_document_of_png_data(data : BytesView, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_image_extract_images_files(inline : Bool, encoding : PdfMetadataEncoding, dedup : Bool, dedup_per_page : Bool, document : PdfDocument, page_numbers : ArrayView[Int], stem : String) -> Array[PdfExtractedImageFile] raise PdfErrorfn pdf_image_extract_single_image_files(document : PdfDocument, object_number : Int, stem : String) -> Array[PdfExtractedImageFile] raise PdfErrorfn pdf_image_images(inline : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> Json raise PdfErrorfn pdf_image_images_json_blob(inline : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn pdf_image_obj_of_png_data(document : PdfDocument, data : BytesView) -> (PdfObject, Array[(Int, PdfObject)]) raise PdfErrorfn pdf_image_object_of_png_data(document : PdfDocument, data : BytesView) -> PdfObject raise PdfErrorfn pdf_image_of_input(data : BytesView, object_of_data : (PdfDocument, BytesView) -> (PdfObject, Array[(Int, PdfObject)]) raise PdfError, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_image_resolution(inline : Bool, document : PdfDocument, page_numbers : ArrayView[Int], dpi : Double) -> Array[(Int, String, Int, Int, Double, Double, Int)] raise PdfErrorfn pdf_image_resolution_json(inline : Bool, document : PdfDocument, page_numbers : ArrayView[Int], dpi : Double) -> Json raise PdfErrorfn pdf_image_resolution_json_blob(inline : Bool, document : PdfDocument, page_numbers : ArrayView[Int], dpi : Double) -> Bytes raise PdfErrorfn pdf_image_set_debug_image_processing(enabled : Bool) -> Unitfn pdf_images(inline : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> Json raise PdfErrorfn pdf_impose(document : PdfDocument, x : Double, y : Double, fit? : Bool, columns? : Bool, rtl? : Bool, btt? : Bool, center? : Bool, margin? : Double, spacing? : Double, line_width? : Double, fast? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_is_linearized(data : BytesView) -> Boolfn pdf_is_unicode_string(bytes : BytesView) -> Boolfn pdf_iter_pages(document : PdfDocument, page_numbers : ArrayView[Int], process : (Int, PdfPage) -> Unit raise PdfError) -> Unit raise PdfErrorfn pdf_iter_pages_cpdf_order(process : (Int, PdfPage) -> Unit raise PdfError, document : PdfDocument, page_numbers : ArrayView[Int]) -> Unit raise PdfErrorfn pdf_json_of_document(document : PdfDocument, utf8? : Bool, parse_content? : Bool, clean_strings? : Bool, no_stream_data? : Bool, decompress_streams? : Bool) -> Json raise PdfErrorfn pdf_json_of_document_blob(document : PdfDocument, utf8? : Bool, parse_content? : Bool, clean_strings? : Bool, no_stream_data? : Bool, decompress_streams? : Bool) -> Bytes raise PdfErrorfn pdf_json_of_object(document : PdfDocument, object : PdfObject, utf8? : Bool, clean_strings? : Bool, no_stream_data? : Bool, parse_content? : Bool) -> Json raise PdfErrorfn pdf_json_page_info(document : PdfDocument, page_numbers : ArrayView[Int], unit : PdfUnit) -> Json raise PdfErrorfn pdf_json_to_output(document : PdfDocument, utf8? : Bool, parse_content? : Bool, no_stream_data? : Bool, decompress_streams? : Bool, clean_strings? : Bool) -> Bytes raise PdfErrorfn pdf_list_annotations(page_numbers : ArrayView[Int], encoding : PdfMetadataEncoding, document : PdfDocument) -> Bytes raise PdfErrorfn pdf_list_bookmarks(json : Bool, json_preserve_actions : Bool, encoding : PdfMetadataEncoding, page_numbers : ArrayView[Int], document : PdfDocument) -> Bytes raise PdfErrorfn pdf_list_fonts(document : PdfDocument, page_numbers : ArrayView[Int]) -> Array[PdfFontListEntry] raise PdfErrorfn pdf_list_fonts_text(document : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn pdf_make_gpcpolygon(holes : ArrayView[Bool], vertex_arrays : ArrayView[Array[PdfClipVertex]]) -> PdfClipPolygon raise PdfErrorfn pdf_make_hex_pdf_string(bytes : BytesView) -> Bytesfn pdf_make_pdf_string(bytes : BytesView) -> Bytesfn pdf_merge_documents(documents : ArrayView[PdfDocument], ranges : ArrayView[Array[Int]], retain_numbering? : Bool, retain_bookmarks? : Bool, retain_optional_content? : Bool, retain_acroforms? : Bool, retain_named_destinations? : Bool, retain_name_dictionary? : Bool, retain_structure_tree? : Bool, add_toplevel_document? : Bool, retain_info? : Bool, retain_catalog_entries? : Bool, remove_duplicate_fonts? : Bool) -> PdfDocument raise PdfErrorfn pdf_merge_number_trees_no_clash(document : PdfDocument, trees : ArrayView[PdfObject]) -> PdfObjectfn pdf_merge_pdfs(retain_numbering : Bool, remove_duplicate_fonts : Bool, names : ArrayView[String], documents : ArrayView[PdfDocument], ranges : ArrayView[Array[Int]], process_struct_trees? : Bool, add_toplevel_document? : Bool) -> PdfDocument raise PdfErrorfn pdf_merge_structure_trees(document : PdfDocument, documents : ArrayView[PdfDocument], add_toplevel_document? : Bool) -> Int? raise PdfErrorfn pdf_metadata_encode_output(encoding : PdfMetadataEncoding, bytes : BytesView) -> Bytes raise PdfErrorfn pdf_metadata_get_data_for_bytes(xml_uri : String, name : String, metadata : BytesView) -> String?fn pdf_metadata_xmltree_get_data_for(xml_uri : String, name : String, tree : PdfMetadataXmlTree) -> String?fn pdf_missing_fonts(document : PdfDocument, page_numbers : ArrayView[Int]) -> Array[PdfMissingFontEntry] raise PdfErrorfn pdf_missing_fonts_return(document : PdfDocument, page_numbers : ArrayView[Int]) -> Array[(Int, String, String, String, String)] raise PdfErrorfn pdf_missing_fonts_text(document : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn pdf_name_of_spec(encoding : PdfMetadataEncoding, bookmarks : ArrayView[PdfBookmark], document : PdfDocument, split_level : Int, spec : String, sequence : Int, filename : String, start_page : Int, end_page : Int) -> String raise PdfErrorfn pdf_obj_of_png_data(document : PdfDocument, data : BytesView) -> (PdfObject, Array[(Int, PdfObject)]) raise PdfErrorfn pdf_of_pages(document : PdfDocument, page_numbers : ArrayView[Int], retain_numbering? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_optional_content_merge(documents : ArrayView[PdfDocument]) -> PdfOptionalContent? raise PdfErrorfn pdf_output_info(document : PdfDocument, encoding? : PdfMetadataEncoding, unit? : PdfUnit) -> Bytes raise PdfErrorfn pdf_output_info_json_blob(document : PdfDocument, encoding? : PdfMetadataEncoding, unit? : PdfUnit) -> Bytes raise PdfErrorfn pdf_output_page_info(unit : PdfUnit, document : PdfDocument, page_numbers : ArrayView[Int], json? : Bool, raisejson? : Bool) -> Bytes raise PdfErrorfn pdf_output_page_info_json_blob(document : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit) -> Bytes raise PdfErrorfn pdf_output_page_info_text(document : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit) -> Bytes raise PdfErrorfn pdf_output_xmp_info(document : PdfDocument, encoding? : PdfMetadataEncoding, unit? : PdfUnit) -> Bytes raise PdfErrorfn pdf_pad_after(document : PdfDocument, page_numbers : ArrayView[Int], pad_with? : PdfDocument?) -> PdfDocument raise PdfErrorfn pdf_pad_before(document : PdfDocument, page_numbers : ArrayView[Int], pad_with? : PdfDocument?) -> PdfDocument raise PdfErrorfn pdf_padafter(page_numbers : ArrayView[Int], document : PdfDocument, pad_with? : PdfDocument?) -> PdfDocument raise PdfErrorfn pdf_padbefore(page_numbers : ArrayView[Int], document : PdfDocument, pad_with? : PdfDocument?) -> PdfDocument raise PdfErrorfn pdf_page_content_json(document : PdfDocument, page_numbers : ArrayView[Int]) -> Json raise PdfErrorfn pdf_page_info_json(document : PdfDocument, page_numbers : ArrayView[Int], unit? : PdfUnit) -> Json raise PdfErrorfn pdf_page_label_add_label(end_page : Int, labels : ArrayView[PdfPageLabel], label : PdfPageLabel, range_end_page : Int) -> Array[PdfPageLabel]fn pdf_page_label_merge(pdfs : ArrayView[PdfDocument], ranges : ArrayView[Array[Int]]) -> Array[PdfPageLabel] raise PdfErrorfn[A, B, C] pdf_page_process_stub(process : (A, B) -> C raise, number : A, page : B) -> (C, A, TransformMatrix) raisefn pdf_pagenumber_of_target(document : PdfDocument, destination : PdfDestination) -> Int raise PdfErrorfn pdf_parse_bookmark_file(verify : Bool, document : PdfDocument, data : BytesView) -> Array[PdfBookmark] raise PdfErrorfn pdf_parse_bookmark_json(verify : Bool, json : Json, document : PdfDocument) -> Array[PdfBookmark] raise PdfErrorfn pdf_parse_bookmark_text(verify : Bool, data : BytesView, document : PdfDocument) -> Array[PdfBookmark] raise PdfErrorfn pdf_parse_coordinate_rectangle(document : PdfDocument, text : String) -> PdfCoordRectangle raise PdfErrorfn pdf_parse_coordinate_rectangles(document : PdfDocument, text : String) -> Array[PdfCoordRectangle] raise PdfErrorfn pdf_parse_coordinate_tuple(document : PdfDocument, text : String) -> (Double, Double) raise PdfErrorfn pdf_parse_coordinates_tuple(document : PdfDocument, text : String) -> Array[(Double, Double)] raise PdfErrorfn pdf_parse_function(document : PdfDocument, function_object : PdfObject) -> PdfFunction raise PdfErrorfn pdf_parse_rectangle(document : PdfDocument, text : String) -> (Double, Double, Double, Double) raise PdfErrorfn pdf_parse_rectangles(document : PdfDocument, text : String) -> Array[(Double, Double, Double, Double)] raise PdfErrorfn pdf_parse_units_string(document : PdfDocument, page : PdfPage, text : String) -> Array[Double] raise PdfErrorfn pdf_path_content_bounding_box(path : PdfPath, ctm : TransformMatrix, line_width : Double, stroking : Bool) -> PdfContentBoundingBox?fn pdf_pdfdocencoding_byte_of_codepoint(codepoint : Int) -> Byte?fn pdf_portfolio(document : PdfDocument, entries : ArrayView[PdfPortfolioEntry], mod_date? : Bytes?) -> PdfDocument raise PdfErrorfn pdf_postpend_operators(document : PdfDocument, operators : ArrayView[PdfContentOp], page : PdfPage, fast? : Bool) -> PdfPage raise PdfErrorfn pdf_prepend_operators(document : PdfDocument, operators : ArrayView[PdfContentOp], page : PdfPage, fast? : Bool) -> PdfPage raise PdfErrorfn pdf_presentation(range : ArrayView[Int], transition : String?, delay : Double?, horizontal : Bool, inward : Bool, direction : Int, effect_duration : Double, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_print_dict_entry_cpdf_order(utf8 : Bool, document : PdfDocument, key : String) -> Array[Bytes] raise PdfErrorfn pdf_print_font_table(document : PdfDocument, font_name : String, page_number : Int) -> Bytes raise PdfErrorfn pdf_print_fonts(document : PdfDocument, page_numbers : ArrayView[Int], json? : Bool) -> Bytes raise PdfErrorfn[T] pdf_print_tree_to_string(value : T, get_name : (T) -> String, get_children : (T) -> Array[T], line_prefix? : String) -> Stringfn[T] pdf_printtree_to_string(value : T, get_name : (T) -> String, get_children : (T) -> Array[T], line_prefix? : String) -> Stringfn pdf_process_pages(document : PdfDocument, page_numbers : ArrayView[Int], process : (Int, PdfPage) -> (PdfPage, Int, TransformMatrix) raise PdfError) -> PdfDocument raise PdfErrorfn pdf_process_pages_cpdf_order(process : (Int, PdfPage) -> (PdfPage, Int, TransformMatrix) raise PdfError, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_process_text(time : PdfStrftimeTime, text : String, replacements : ArrayView[(String, () -> String)]) -> Stringfn pdf_progress_done() -> Unitfn pdf_progress_endpage() -> Unitfn pdf_progress_line(text : String) -> Unitfn pdf_progress_line_no_end(text : String) -> Unitfn pdf_progress_output() -> Stringfn pdf_progress_page(page : Int) -> Unitfn pdf_read_bookmarks(document : PdfDocument, preserve_actions? : Bool) -> Array[PdfBookmark] raise PdfErrorfn pdf_read_classic_document_revision_from_bytes(data : Bytes, revision : Int) -> PdfDocument raise PdfErrorfn pdf_read_classic_document_revision_from_view(data : BytesView, revision : Int) -> PdfDocument raise PdfErrorfn pdf_read_colour_space(document : PdfDocument, resources : PdfObject, object : PdfObject) -> PdfColourSpace? raise PdfErrorfn pdf_read_destination(document : PdfDocument, object : PdfObject, shallow? : Bool) -> PdfDestination raise PdfErrorfn pdf_read_document_from_bytes_with_passwords(data : Bytes, user_password? : BytesView?, owner_password? : BytesView?) -> PdfDecryptionResult? raise PdfErrorfn pdf_read_document_from_view_with_passwords(data : BytesView, user_password? : BytesView?, owner_password? : BytesView?) -> PdfDecryptionResult? raise PdfErrorfn pdf_read_document_revision_from_bytes(data : Bytes, revision : Int) -> PdfDocument raise PdfErrorfn pdf_read_document_revision_from_bytes_with_passwords(data : Bytes, revision : Int, user_password? : BytesView?, owner_password? : BytesView?) -> PdfDecryptionResult? raise PdfErrorfn pdf_read_document_revision_from_view(data : BytesView, revision : Int) -> PdfDocument raise PdfErrorfn pdf_read_document_revision_from_view_with_passwords(data : BytesView, revision : Int, user_password? : BytesView?, owner_password? : BytesView?) -> PdfDecryptionResult? raise PdfErrorfn pdf_rectify_boxes(document : PdfDocument, page : PdfPage, fast? : Bool) -> PdfPage raise PdfErrorfn pdf_redact(document : PdfDocument, path : ArrayView[(Double, Double)], page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_redact_pages(document : PdfDocument, page_numbers : ArrayView[Int], process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_redact_pages_cpdf_order(process_struct_tree : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_added_text(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_all_text(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_all_text_cpdf_order(page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_remove_annotations(page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_remove_art_pdf(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_bleed_pdf(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_clipping(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_cropping_pdf(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_remove_page_box(document : PdfDocument, page_numbers : ArrayView[Int], box_name : PdfName) -> PdfDocument raise PdfErrorfn pdf_remove_trim_pdf(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_removetext(page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_replace_dict_entry(document : PdfDocument, key : PdfName, value : PdfObject, search? : PdfObject?) -> Unitfn pdf_replace_dict_entry_string(document : PdfDocument, key : String, value : PdfObject, search? : PdfObject?) -> Unitfn pdf_replace_object_by_spec(document : PdfDocument, spec : String, value : PdfObject) -> Unit raise PdfErrorfn pdf_replace_pairs(bookmarks : ArrayView[PdfBookmark], document : PdfDocument, end_page : Int, filename : String, bates : Int, bates_pad : Int?, page_number : Int) -> Array[(String, () -> String)] raise PdfErrorfn pdf_replace_stream_by_spec(document : PdfDocument, spec : String, data : BytesView) -> Unit raise PdfErrorfn pdf_reveal_hidden_text(document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_reveal_hidden_text_cpdf_order(page_numbers : ArrayView[Int], document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_rotate_contents(document : PdfDocument, rotation : Double, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_rotate_contents_cpdf_order(rotation : Double, document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_rotate_pages(document : PdfDocument, rotation : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_rotate_pages_by(document : PdfDocument, rotation : Int, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_rotate_pdf(rotation : Int, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_rotate_pdf_by(rotation : Int, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_scale_contents(document : PdfDocument, page_numbers : ArrayView[Int], position : PdfPosition, scale : Double, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_scale_contents_cpdf_order(position : PdfPosition, scale : Double, document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_scale_pages(document : PdfDocument, page_numbers : ArrayView[Int], scales : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_scale_pdf(scales : ArrayView[(Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_scale_to_fit_pages(document : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], position? : PdfPosition, input_scale? : Double, fast? : Bool) -> PdfDocument raise PdfErrorfn[T] pdf_scale_to_fit_pdf(position : PdfPosition, input_scale : Double, sizes : ArrayView[(Double, Double)], _op : T, document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_scale_to_fit_rotate(sizes : ArrayView[(Double, Double)], rotation : Int, document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_scale_to_fit_rotate_pages(document : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], rotation : Int, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_set_annotations_json_cpdf_order(document : PdfDocument, json : Json) -> PdfDocument raise PdfErrorfn pdf_set_box(document : PdfDocument, page_numbers : ArrayView[Int], box_name : PdfName, min_x : Double, max_x : Double, min_y : Double, max_y : Double) -> PdfDocument raise PdfErrorfn pdf_set_box_string(box_name : String, min_x : Double, max_x : Double, min_y : Double, max_y : Double, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_set_debug_image_processing(enabled : Bool) -> Unitfn pdf_set_mediabox(boxes : ArrayView[(Double, Double, Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_set_mediaboxes(document : PdfDocument, page_numbers : ArrayView[Int], boxes : ArrayView[(Double, Double, Double, Double)]) -> PdfDocument raise PdfErrorfn pdf_set_metadata_from_bytes(keep_version : Bool, data : BytesView, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_set_non_full_screen_page_mode(document : PdfDocument, mode : String) -> PdfDocument raise PdfErrorfn pdf_set_open_action(document : PdfDocument, fit : Bool, page_number : Int, destination? : PdfObject?) -> PdfDocument raise PdfErrorfn pdf_set_open_action_cpdf_order(document : PdfDocument, fit : Bool, page_number : Int, destination? : String?) -> PdfDocument raise PdfErrorfn pdf_set_open_action_string_destination(document : PdfDocument, fit : Bool, page_number : Int, destination? : String?) -> PdfDocument raise PdfErrorfn pdf_set_pdf_info(key : PdfName, value : PdfObject, version : Int, document : PdfDocument, keep_version? : Bool, xmp_also? : Bool, xmp_just_set? : Bool) -> PdfDocument raise PdfErrorfn pdf_set_pdf_info_cpdf_order(entry : (String, PdfObject, Int), document : PdfDocument, xmp_also? : Bool, xmp_just_set? : Bool) -> PdfDocument raise PdfErrorfn pdf_set_pdf_info_string(entry : (String, PdfObject, Int), document : PdfDocument, xmp_also? : Bool, xmp_just_set? : Bool) -> PdfDocument raise PdfErrorfn pdf_set_progress(enabled : Bool) -> Unitfn pdf_set_viewer_preference(key : PdfName, value : PdfObject, version : Int, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_set_viewer_preference_cpdf_order(entry : (String, PdfObject, Int), document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_set_viewer_preference_string(entry : (String, PdfObject, Int), document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_shift_boxes(document : PdfDocument, page_numbers : ArrayView[Int], offsets : ArrayView[(Double, Double)]) -> PdfDocument raise PdfErrorfn pdf_shift_boxes_cpdf_order(offsets : ArrayView[(Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_shift_pages(document : PdfDocument, page_numbers : ArrayView[Int], offsets : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_shift_pdf(offsets : ArrayView[(Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_show_annotation_bounding_boxes(document : PdfDocument, page_numbers : ArrayView[Int], light? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_show_bounding_boxes(document : PdfDocument, page_numbers : ArrayView[Int], shape? : PdfRectangle?, light? : Bool, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_show_bounding_boxes_cpdf_order(fast : Bool, shape : PdfRectangle?, light : Bool, document : PdfDocument, page_numbers : ArrayView[Int]) -> PdfDocument raise PdfErrorfn pdf_show_boxes(document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_show_composition(file_size : Int, json : Bool, document : PdfDocument) -> Bytes raise PdfErrorfn pdf_stamp(document : PdfDocument, page_numbers : ArrayView[Int], overlay : PdfDocument, relative_to_box? : PdfName, position? : PdfPosition, topline? : Bool, midline? : Bool, fast? : Bool, scale_to_fit? : Bool, is_over? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_stamp_as_xobject(document : PdfDocument, range : ArrayView[Int], overlay : PdfDocument) -> (PdfDocument, PdfName) raise PdfErrorfn pdf_stamp_as_xobject_string(document : PdfDocument, range : ArrayView[Int], overlay : PdfDocument) -> (PdfDocument, String) raise PdfErrorfn pdf_stamp_cpdf_order(process_struct_tree : Bool, relative_to_box : String, position : PdfPosition, topline : Bool, midline : Bool, fast : Bool, scale_to_fit : Bool, is_over : Bool, page_numbers : ArrayView[Int], overlay : PdfDocument, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_standard14_text_width(font : PdfStandardFont, encoding : PdfEncoding, text : BytesView, kern? : Bool) -> Intfn pdf_standard14_textwidth(kern : Bool, encoding : PdfEncoding, font : PdfStandardFont, text : BytesView) -> Intfn pdf_stretch(sizes : ArrayView[(Double, Double)], document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_stretch_pages(document : PdfDocument, page_numbers : ArrayView[Int], sizes : ArrayView[(Double, Double)], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_target_of_pagenumber(document : PdfDocument, page_number : Int) -> PdfDestination raise PdfErrorfn pdf_test_extract_text(document : PdfDocument, page_numbers : ArrayView[Int]) -> Bytes raise PdfErrorfn pdf_text_extractor_of_font(document : PdfDocument, font : PdfObject) -> PdfTextExtractor raise PdfErrorfn pdf_texttopdf_of_utf8_with_newlines(fontpack : PdfFontPack, font_size : Double, text : BytesView) -> Array[PdfTypeElement] raise PdfErrorfn pdf_texttopdf_typeset(fontpack : PdfFontPack, font_size : Double, paper : PaperSize, text : BytesView, process_struct_tree? : Bool, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_texttopdf_typeset_cpdf_order(process_struct_tree : Bool, paper : PaperSize, fontpack : PdfFontPack, font_size : Double, text : BytesView, subformat? : PdfUASubformat?, title? : String?) -> PdfDocument raise PdfErrorfn pdf_thin_lines(document : PdfDocument, page_numbers : ArrayView[Int], width : Double) -> PdfDocument raise PdfErrorfn pdf_thin_lines_ops(document : PdfDocument, resources : PdfObject, ops : ArrayView[PdfContentOp], width : Double) -> Array[PdfContentOp] raise PdfErrorfn pdf_thinlines(page_numbers : ArrayView[Int], width : Double, document : PdfDocument) -> PdfDocument raise PdfErrorfn pdf_toc_insert_pages(document : PdfDocument, toc_pages : ArrayView[PdfPage], labels : ArrayView[PdfPageLabel]) -> PdfDocument raise PdfErrorfn pdf_toc_make_dots(space : Double, fontpack : PdfFontPack, font_size : Double) -> Array[PdfTypeElement] raise PdfErrorfn pdf_toc_of_pdfdocencoding(fontpack : PdfFontPack, font_size : Double, text : BytesView) -> Array[PdfTypeElement] raise PdfErrorfn pdf_toc_of_utf8(fontpack : PdfFontPack, font_size : Double, text : BytesView) -> Array[PdfTypeElement] raise PdfErrorfn pdf_toc_shift_page_labels(toc_page_count : Int, labels : ArrayView[PdfPageLabel]) -> Array[PdfPageLabel]fn pdf_toc_shorten_text(fontpack : PdfFontPack, font_size : Double, max_width : Double, runs : ArrayView[PdfTypeElement]) -> Array[PdfTypeElement] raise PdfErrorfn pdf_toc_title_real_newlines(title : BytesView) -> Bytesfn pdf_toc_type_elements(document : PdfDocument, fontpack : PdfFontPack, font_size : Double, title : BytesView, dotleader : Bool, process_struct_tree : Bool, labels : ArrayView[PdfPageLabel], bookmarks : ArrayView[PdfBookmark], page_width : Double, margin : Double) -> Array[PdfTypeElement] raise PdfErrorfn pdf_toc_typeset_pages(document : PdfDocument, fontpack : PdfFontPack, font_size : Double, title : BytesView, dotleader : Bool, process_struct_tree : Bool, labels : ArrayView[PdfPageLabel], bookmarks : ArrayView[PdfBookmark]) -> PdfTypeTypesetResult raise PdfErrorfn pdf_toc_used_codepoints(document : PdfDocument, labels : ArrayView[PdfPageLabel], title : BytesView, bookmarks : ArrayView[PdfBookmark]) -> Array[Int] raise PdfErrorfn pdf_toc_with_fontpack(document : PdfDocument, fontpack : PdfFontPack, font_size : Double, title : BytesView, bookmark? : Bool, dotleader? : Bool) -> PdfDocument raise PdfErrorfn pdf_toc_with_source(document : PdfDocument, source : PdfTocFontSource, font_size : Double, title : BytesView, bookmark? : Bool, dotleader? : Bool) -> PdfDocument raise PdfErrorfn pdf_transform_annotations(document : PdfDocument, matrix : TransformMatrix, rest : PdfObject) -> Unit raise PdfErrorfn pdf_transform_bookmark(document : PdfDocument, matrix : TransformMatrix, bookmark : PdfBookmark) -> PdfBookmark raise PdfErrorfn pdf_transform_destination(document : PdfDocument, matrix : TransformMatrix, destination : PdfDestination) -> PdfDestination raise PdfErrorfn pdf_trim_marks(document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_trim_structure_tree(document : PdfDocument, page_numbers : ArrayView[Int]) -> Unit raise PdfErrorfn pdf_truetype_cmap_glyph(data : BytesView, codepoint : Int) -> Int?fn pdf_truetype_glyph_byte_ranges(data : BytesView, glyph_indices : ArrayView[Int]) -> Array[PdfTrueTypeGlyphByteRange] raise PdfErrorfn pdf_truetype_parse(data : BytesView, encoding : PdfEncoding, subset_codepoints : ArrayView[Int]) -> Array[PdfTrueTypeParsedSubset] raise PdfErrorfn pdf_truetype_partition_subsets(encoding : PdfEncoding, subset_codepoints : ArrayView[Int]) -> PdfTrueTypeSubsetPartitionfn pdf_truetype_subset_cmap_table(data : BytesView, subset_codepoints : ArrayView[Int]) -> PdfTrueTypeSubsetTable raise PdfErrorfn pdf_truetype_subset_glyf_table(data : BytesView, subset_codepoints : ArrayView[Int]) -> PdfTrueTypeSubsetTable raise PdfErrorfn pdf_truetype_widths(data : BytesView, encoding : PdfEncoding, firstchar : Int, lastchar : Int, subset_codepoints : ArrayView[Int]) -> Array[Int] raise PdfErrorfn pdf_twoup(document : PdfDocument, fast? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_twoup_stack(document : PdfDocument, fast? : Bool, process_struct_tree? : Bool) -> PdfDocument raise PdfErrorfn pdf_type_layout(lmargin : Double, rmargin : Double, paper : PaperSize, elements : ArrayView[PdfTypeElement]) -> Array[PdfTypeElement] raise PdfErrorfn pdf_type_paginate(tmargin : Double, bmargin : Double, paper : PaperSize, elements : ArrayView[PdfTypeElement]) -> Array[PdfTypeElement]fn pdf_type_typeset(document : PdfDocument, process_struct_tree : Bool, lmargin : Double, rmargin : Double, tmargin : Double, bmargin : Double, paper : PaperSize, elements : ArrayView[PdfTypeElement]) -> PdfTypeTypesetResult raise PdfErrorfn pdf_type_typeset_cpdf_order(process_struct_tree : Bool, lmargin : Double, rmargin : Double, tmargin : Double, bmargin : Double, paper : PaperSize, document : PdfDocument, elements : ArrayView[PdfTypeElement]) -> PdfTypeTypesetResult raise PdfErrorfn pdf_typeset_table_of_contents(source : PdfTocFontSource, font_size : Double, title : BytesView, bookmark : Bool, dotleader : Bool, process_struct_tree : Bool, document : PdfDocument, subformat? : PdfUASubformat?) -> PdfDocument raise PdfErrorfn pdf_ua_create_pdfua1(title : String, paper : PaperSize, page_count : Int) -> PdfDocument raise PdfErrorfn pdf_ua_create_pdfua2(title : String, paper : PaperSize, page_count : Int) -> PdfDocument raise PdfErrorfn pdf_upright(page_numbers : ArrayView[Int], document : PdfDocument, fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_upright_pages(document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_vflip_pdf(document : PdfDocument, page_numbers : ArrayView[Int], fast? : Bool) -> PdfDocument raise PdfErrorfn pdf_write_document_incremental_update(original : Bytes, document : PdfDocument) -> Bytes raise PdfErrorfn pdf_write_document_incremental_update_with_compressed_xref_stream(original : Bytes, document : PdfDocument) -> Bytes raise PdfErrorfn pdf_write_document_incremental_update_with_generated_id(original : Bytes, document : PdfDocument, path : String, mode? : PdfWriteMode) -> Bytes raise PdfErrorfn pdf_write_document_incremental_update_with_mode(original : Bytes, document : PdfDocument, mode : PdfWriteMode) -> Bytes raise PdfErrorfn pdf_write_document_incremental_update_with_xref_stream(original : Bytes, document : PdfDocument) -> Bytes raise PdfErrorfn pdf_write_document_options(document : PdfDocument, encryption? : PdfWriteEncryption?, update_from? : Bytes?, make_id? : Bool, id_path? : String, mode? : PdfWriteMode, file_id? : BytesView, aes_iv_provider? : (Int, Int, Int) -> Bytes raise PdfError?, aesv3_random_provider? : (PdfAesV3RandomField, Int) -> Bytes raise PdfError?) -> Bytes raise PdfErrorfn pdf_write_document_with_generated_id(document : PdfDocument, path : String, mode? : PdfWriteMode) -> Bytes raise PdfErrorfn pdf_write_document_with_mode(document : PdfDocument, mode : PdfWriteMode) -> Bytes raise PdfErrorfn pdf_write_encrypted_128bit_document(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_128bit_r4_document(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_40bit_document(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_aesv2_document(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_aesv2_document_with_iv_provider(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], iv_provider : (Int, Int, Int) -> Bytes raise PdfError, encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_aesv3_document(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], iso? : Bool, encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_aesv3_document_with_providers(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], random_provider : (PdfAesV3RandomField, Int) -> Bytes raise PdfError, iv_provider : (Int, Int, Int) -> Bytes raise PdfError, iso? : Bool, encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_aesv3_iso_document(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_encrypted_aesv3_iso_document_with_providers(document : PdfDocument, user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[PdfPermission], random_provider : (PdfAesV3RandomField, Int) -> Bytes raise PdfError, iv_provider : (Int, Int, Int) -> Bytes raise PdfError, encrypt_metadata? : Bool, mode? : PdfWriteMode, file_id? : BytesView) -> Bytes raise PdfErrorfn pdf_write_hex_string(bytes : BytesView) -> Bytesfn pdf_write_literal_string(bytes : BytesView) -> Bytesfn pdf_write_ocg(document : PdfDocument, optional_content : PdfOptionalContent) -> PdfDocument raise PdfErrorfn pdf_write_page_labels(document : PdfDocument, labels : ArrayView[PdfPageLabel]) -> PdfDocument raise PdfErrorfn pdf_xobjbbox(control : PdfDrawControl, document : PdfDocument, text : String) -> Unit raise PdfErrorInstall
Download zipByte-oriented PDF reading, writing, and manipulation toolkit for MoonBit.
Dependencies