PDFium Delphi Component Docs

יחידת FPdfProduction

תהליכי עבודת ייצור מוגבלים עבור גרפיקה, תוכן מסמכים, חבילות אינטראקטיביות ומדיה מוטמעת

Exception and enumerations

DeclarationValues or purpose
EPdfProductionחריג שמועלה עבור קלט ייצור לא חוקי, תקציבי בטיחות שמוצו, פעולות לא נתמכות ופלט backend שנדחה
TPdfColourSpacepcsDeviceGray, pcsDeviceRGB, pcsDeviceCMYK, pcsICCBased, pcsSeparation, pcsDeviceN
TPdfSvgPathCommandKindspcMoveTo, spcLineTo, spcCubicTo, spcQuadraticTo, spcClosePath
TPdfReplacementModeprmNativeTextObject, prmRedactAndRelayout
TPdfBarcodeKindpbkCode128, pbkQr, pbkDataMatrix, pbkPdf417
TPdfPortfolioFieldTypeppftText, ppftNumber, ppftDate, ppftFileName, ppftDescription, ppftSize, ppftModDate, ppftCreationDate

Colour conversion declarations

DeclarationPublic fields or members
TPdfColourBufferSpace: TPdfColourSpace, Components: Integer, BitsPerComponent: Integer, Samples: TBytes, IccProfile: TBytes
TPdfOutputIntentIdentifier: string, RegistryName: string, Info: string, Components: Integer, IccProfile: TBytes
TPdfColourConversionOptionsMaxInputBytes: Integer, MaxOutputBytes: Integer, PreserveOnFailure: Boolean, class function Default: TPdfColourConversionOptions
TPdfColourConversionReportConverted: Boolean, PreservedOriginal: Boolean, InputBytes: Integer, OutputBytes: Integer, ErrorMessage: string

Font and SVG declarations

DeclarationPublic fields or members
TPdfGlyphInfoGlyphID: Cardinal, UnicodeValue: Cardinal, Width: Integer
TPdfGlyphInfosמערך דינמי של TPdfGlyphInfo
TPdfFontSubsetOptionsMaxFontBytes: Integer, MaxGlyphs: Integer, MinimumSavingPercent: Integer, class function Default: TPdfFontSubsetOptions
TPdfFontSubsetReportApplied: Boolean, PreservedOriginal: Boolean, GlyphCount: Integer, OriginalBytes: Integer, SubsetBytes: Integer, ErrorMessage: string
TPdfSvgPathCommandKind: TPdfSvgPathCommandKind, Values: array[0..5] of Double
TPdfSvgPathCommandsמערך דינמי של TPdfSvgPathCommand

Styled replacement and XFA declarations

DeclarationPublic fields or members
TPdfStyledSpanPageIndex: Integer, ObjectIndex: Integer, CharacterStart: Integer, Text: WideString, StyleID: Integer
TPdfStyledSpansמערך דינמי של TPdfStyledSpan
TPdfRegexMatchStartIndex: Integer, Length: Integer, Replacement: WideString
TPdfRegexMatchesמערך דינמי של TPdfRegexMatch
TPdfStyledReplacementMode: TPdfReplacementMode, PageIndex: Integer, FirstObjectIndex: Integer, LastObjectIndex: Integer, FirstCharacter: Integer, CharacterCount: Integer, Replacement: WideString, StyleID: Integer, LastPageIndex: Integer
TPdfStyledReplacementsמערך דינמי של TPdfStyledReplacement
TPdfXfaBindingSomPath: string, Value: string
TPdfXfaBindingsמערך דינמי של TPdfXfaBinding

Barcode and Portfolio declarations

DeclarationPublic fields or members
TPdfBarcodeRectLeft: Double, Top: Double, Right: Double, Bottom: Double
TPdfBarcodeRectsמערך דינמי של TPdfBarcodeRect
TPdfBarcodeResultKind: TPdfBarcodeKind, Text: string, Bounds: TPdfBarcodeRect, Confidence: Double
TPdfBarcodeResultsמערך דינמי של TPdfBarcodeResult
TPdfPortfolioFieldName: string, DisplayName: string, FieldType: TPdfPortfolioFieldType, Order: Integer, Visible: Boolean, Editable: Boolean
TPdfPortfolioFieldsמערך דינמי של TPdfPortfolioField
TPdfPortfolioValueFieldName: string, Value: string
TPdfPortfolioValuesמערך דינמי של TPdfPortfolioValue
TPdfPortfolioItemFileName: string, Description: string, Values: TPdfPortfolioValues, EmbeddedData: TBytes
TPdfPortfolioItemsמערך דינמי של TPdfPortfolioItem
TPdfPortfolioFields: TPdfPortfolioFields, Items: TPdfPortfolioItems, SortField: string, SortAscending: Boolean

RichMedia declarations

DeclarationPublic fields
TPdfRichMediaAssetName: string, MimeType: string, Data: TBytes, IsExternal: Boolean, ActivationCondition: string, DefaultView: string
TPdfRichMediaAssetsמערך דינמי של TPdfRichMediaAsset
TPdfRichMediaExtractedName: string, MimeType: string, Size: Int64, Sha256: string
TPdfRichMediaExtractedArrayמערך דינמי של TPdfRichMediaExtracted

Backend interfaces

InterfaceMethodPurpose
IPdfColourTransformfunction Transform(const Source: TPdfColourBuffer; TargetSpace: TPdfColourSpace; const TargetProfile: TBytes; out Target: TPdfColourBuffer): Booleanממיר מאגר מקור מאומת למרחב הצבע ולפרופיל המבוקשים
IPdfFontSubsetBackendfunction Subset(const FontProgram: TBytes; const Glyphs: TPdfGlyphInfos; out SubsetProgram: TBytes): Booleanבונה תוכנית גופן המכילה את סגירת הגליפים המבוקשת
IPdfRegexEnginefunction FindMatches(const Text, Pattern, Replacement: WideString; MaxMatches: Integer): TPdfRegexMatchesמחזיר התאמות ביטוי רגולרי מוגבלות היקף וטקסט החלפה
IPdfBarcodeProviderfunction Generate(Kind: TPdfBarcodeKind; const Text: string; ModuleSize: Double; out Rects: TPdfBarcodeRects): Booleanמייצר מלבני מודולים של ברקוד עבור סימבולוגיה נתמכת
function Recognise(const Pixels: TBytes; Width, Height, Stride: Integer; MaxResults: Integer): TPdfBarcodeResultsמזהה תוצאות ברקוד מוגבלות היקף ממאגר פיקסלים בבעלות הקורא

Default option factories

MemberPurpose
class function TPdfColourConversionOptions.Default: TPdfColourConversionOptionsמחזיר ברירות מחדל מוגבלות של המרת צבע עם שימור המקור מופעל
class function TPdfFontSubsetOptions.Default: TPdfFontSubsetOptionsמחזיר מגבלות מוגבלות של גופן וגליפים עם סף חיסכון מינימלי

Top-level routines

SignatureDescription
function ConvertPdfColourBuffer(const Source: TPdfColourBuffer; TargetSpace: TPdfColourSpace; const TargetProfile: TBytes; Transform: IPdfColourTransform; const Options: TPdfColourConversionOptions; out Target: TPdfColourBuffer; out OutputIntent: TPdfOutputIntent; out Report: TPdfColourConversionReport): Booleanמריץ מאגר צבע דרך transform שמסופק על ידי הקורא ובונה נתוני OutputIntent תואמים תוך שימור המקור במקרה כשל
function SubsetExistingPdfFont(const FontProgram: TBytes; const UsedGlyphs: TPdfGlyphInfos; Backend: IPdfFontSubsetBackend; const Options: TPdfFontSubsetOptions; out ResultProgram: TBytes; out GlyphClosure: TPdfGlyphInfos; out Report: TPdfFontSubsetReport): Booleanבונה סגירת גליפים ייחודית ממוינת ומקבל תת-קבוצה רק כאשר היא חוקית וקטנה יותר
function ParsePdfSvgPath(const Data: string; MaxCommands: Integer = 100000): TPdfSvgPathCommandsמפרש פקודות move, line, cubic, quadratic ו-close מוגבלות היקף עם תמיכה בקואורדינטות יחסיות
function ExportPdfSvgPath(const Commands: TPdfSvgPathCommands): stringמסדר פקודות נתיב לתחביר נתיב SVG אבסולוטי
procedure TransformPdfSvgPath(var Commands: TPdfSvgPathCommands; A, B, C, D, E, F: Double)מחיל מטריצה אפינית על כל קואורדינטה בנתיב SVG מפורש
function BuildStyledRegexReplacementPlan(const Spans: TPdfStyledSpans; const Pattern, Replacement: WideString; Engine: IPdfRegexEngine; MaxCharacters: Integer = 16 * 1024 * 1024; MaxMatches: Integer = 100000): TPdfStyledReplacementsממפה התאמות ביטוי רגולרי בחזרה אל פריטי אובייקטי עמוד מעוצבים ובוחר החלפה מקורית או החלפה מבוססת הסתרה
function MergePdfXfaDatasets(const Packets: TXfaPacketList; const Bindings: TPdfXfaBindings; MaxPacketBytes: Integer = 32 * 1024 * 1024): TXfaPacketListממזג כריכות עלים של SOM עם בריחת תווים תוך שימור כל מנה XFA שלא בוצע בה שינוי
function RewritePdfXfaPacketStreams(Source, Destination: TStream; const Packets: TXfaPacketList; MaxTotalPacketBytes: Int64 = 256 * 1024 * 1024): Booleanמוסיף זרמי מנות XFA מוחלפים טרנזקציונלית ל-PDF לא מוצפן
function GeneratePdfBarcode(Kind: TPdfBarcodeKind; const Text: string; ModuleSize: Double; Provider: IPdfBarcodeProvider = nil): TPdfBarcodeRectsמייצר וקטורים מובנים של Code 128-B ומאציל סימבולוגיות דו-ממדיות ל-provider
function RecognisePdfBarcodes(const Pixels: TBytes; Width, Height, Stride: Integer; Provider: IPdfBarcodeProvider; MaxResults: Integer = 256): TPdfBarcodeResultsמאציל זיהוי ברקוד תוך אכיפת גיאומטריית התמונה ותקרות התוצאה
procedure ValidatePdfPortfolio(const Portfolio: TPdfPortfolio; MaxItems: Integer = 100000; MaxEmbeddedBytes: Int64 = 1024 * 1024 * 1024)מאמת הגדרות שדות, ערכים, ספירות פריטים ותקציבי מטען מוטמע
procedure SortPdfPortfolio(var Portfolio: TPdfPortfolio)יוצר תצוגת Collection דטרמיניסטית באמצעות שדה המיון והכיוון שהוגדרו
function ExtractPdfRichMediaAssets(const Assets: TPdfRichMediaAssets; const OutputDirectory: string; MaxAssetBytes: Int64 = 256 * 1024 * 1024; MaxTotalBytes: Int64 = 1024 * 1024 * 1024): TPdfRichMediaExtractedArrayכותב נכסים מוטמעים מבלי להריץ תוכן, לפענח הפניות חיצוניות או לאפשר יציאה מהספרייה

Safety model

כל ה-API בנפח גבוה אוכפים מגבלות גלויות לקורא לפני הקצאת זיכרון או כתיבת פלט

מקודדי פלטפורמה, מנועי צבע, מקטיני גופנים, מנועי ביטוי רגולרי, ספריות ברקוד מטריציוני ומזהים הם ממשקים מפורשים כדי שמארחים יוכלו לבחור את ה-backend המבוקר שלהם