Pdf.FileName := 'document.pdf';
Pdf.Password := 'password';
Pdf.Active := True; // PDF-dokumentum megnyitása
Pdf.PageNumber := 1; // oldal kiválasztása
ShowMessage(Pdf.Text); // szöveg kinyerése
type TBookmark = record
Handle: FPDF_BOOKMARK;
Title: WString;
PageNumber: Integer;
Action: TPdfAction;
ActionPageNumber: Integer;
end;
type TBookmarks = array of TBookmark;
Könyvjelzőadatok
type TDestination = record
Handle: FPDF_DEST;
Name: WString;
PageNumber: Integer;
HasX: Boolean;
X: Single;
HasY: Boolean;
Y: Single;
HasZoom: Boolean;
Zoom: Single;
end;
Nevezett céladatok
type TLinkAnnotation = record
Handle: FPDF_LINK;
Rectangle: TPdfRectangle;
PageNumber: Integer;
Action: TPdfAction;
ActionPageNumber: Integer;
ActionPath: WString;
Points: array of TQuadrilateralPoint;
end;
type TLinkAnnotations = array of TLinkAnnotation;
type TQuadrilateralPoint = array [1..4] of TPdfPoint;
Linkjegyzet-adatok
type TObjectType = (otUnknown, otText, otPath, otImage, otShading, otForm);
Meghatározza a PDF-objektum típusát
type TPageMode = (pmNone, pmOutline, pmThumbs, pmFullScreen, pmOptionalContentGroup, pmAttachments, pmUnknown);
Meghatározza, hogyan jelenjen meg a PDF-dokumentum megnyitáskor
type TPdfAction = (acUnsupported, acGoto, acGotoRemote, acUri, acLaunch);
Meghatározza a könyvjelzőelemhez társított művelet típusát
type TPdfAnnotation = record
Subtype: TPdfAnnotationSubtype;
Flags: TPdfAnnotationFlags;
HasColor: Boolean;
Color: TColor;
ColorAlpha: Byte;
HasInteriorColor: Boolean;
InteriorColor: TColor;
InteriorColorAlpha: Byte;
HasAttachmentPoints: Boolean;
AttachmentPoints: TQuadrilateralPoint;
Rectangle: TPdfRectangle;
ContentsText: WString;
AuthorText: WString;
end;
Jegyzetadatok
type TPdfAnnotationFlag = (afInvisible, afHidden, afPrint, afNoZoom, afNoRotate, afNoView, afReadOnly, afLocked, afToggleNoView);
type TPdfAnnotationFlags = set of TPdfAnnotationFlag;
Jegyzetjelzők
type TPdfAnnotationSubtype = (anUnknown, anText, anLink, anFreeText, anLine, anSquare, anCircle, anPolygon, anPolyLine, anHighlight, anUnderline, anSquiggly, anStrikeout, anStamp, anCaret, anInk, anPopup, anFileAttachment, anSound, anMovie, anWidget, anScreen, anPrinterMark, anTrapNet, anWaterMark, anThreed, anRichMedia, anXfaWidget, anRedact);
A jegyzet altípusa
type TPdfBlendMode = (bmDefault, bmColor, bmColorBurn, bmColorDodge, bmDarken, bmDifference, bmExclusion, bmHardLight, bmHue, bmLighten, bmLuminosity, bmMultiply, bmNormal, bmOverlay, bmSaturation, bmScreen, bmSoftLight);
Meghatározza, hogyan keverednek egymásba a rétegek
type TPdfDisplayMode = (dmSingleContinuous, dmTwoPageContinuous, dmTwoPageContinuousWithCover);
Meghatározza, hogyan jelennek meg a PDF-dokumentum oldalai
type TPdfFeature = (feUnknown, feXfaForm, fePortableCollection, feAttachment, feSecurity, feSharedReview, feSharedFormAcrobat, feSharedFormFilesystem, feSharedFormEmail, fe3dAnnotation, feMovieAnnotation, feSoundAnnotation, feScreenMediaAnnotation, feScreenRichMediaAnnotation, feAttachmentAnnotation, feSignatureAnnotation);
Feature of PDF document reported by OnUnsupportedFeature event.
type TPdfFillMode = (fmNone, fmAlternate, fmWinding);
Determines how fill areas are formed when path intersects itself.
type TPdfFormFieldFlag = (ffReadOnly, ffRequired, ffNoExport, ffMultiline, ffChoiceCombo, ffChoiceEdit, ffPassword, ffChoiceMultiSelect);
type TPdfFormFieldFlags = set of TPdfFormFieldFlag;
Form field flags.
type TPdfFormFieldInfo = record
Name: WString;
AlternateName: WString;
FieldType: TPdfFormFieldType;
Flags: TPdfFormFieldFlags;
OptionLabels: array of WString;
OptionSelected: array of Boolean;
FontSize: Single;
Checked: Boolean;
ExportValue: WString;
GroupCount: Integer;
GroupIndex: Integer;
end;
Form field information.
type TPdfFormFieldType = (fiUnknown, fiPushButton, fiCheckBox, fiRadioButton, fiComboBox, fiListBox, fiTextField, fiSignature);
Determines the type of the form field.
type TPdfFormType = (ftUnknown, ftNone, ftAcroForm, ftXfaFull, ftXfaForeground);
Determines type of forms in the PDF document.
type TPdfImage = record
Width: Integer;
Height: Integer;
Data: TBytes;
end;
Size in pixels and data of the PDF image object.
type TPdfLineCap = (lcDefault, lcButt, lcRound, lcProjectingSquare);
The shape to be used at the ends of open subpaths.
type TPdfLineJoin = (ljDefault, ljMiter, ljRound, ljBevel);
The shape to be used at the corners of paths that are stroked.
type TPdfPoint = record
X, Y: Double;
end;
Point with X and Y coordinates.
type TPdfRectangle = record
Left, Top, Right, Bottom: Double;
end;
type TPdfRectangles = array of TPdfRectangle;
Rectangle area with Left, Top, Right and Bottom coordinates.
type TPdfFileIdentifierType = (fidPermanent, fidChanging);
Trailer file identifier selector. fidPermanent reads the first /ID entry and fidChanging reads the second /ID entry.
type TPdfPageBox = (pbMedia, pbCrop, pbBleed, pbTrim, pbArt);
Page dictionary box selector used by PageBox, GetPageBox, and SetPageBox.
type TPdfJavaScriptAction = record
Name: WString;
Script: WString;
end;
type TPdfJavaScriptActions = array of TPdfJavaScriptAction;
Dokumentumszintű JavaScript name-tree műveleti adatok
type TPdfSignature = record
Content: TBytes;
Encoding: WString;
Reason: WString;
Time: WString;
Permission: Integer;
end;
Digital signature information.
type TPdfIntegerArray = array of Integer;
Integer array used by structure-tree marked-content ID lists.
type TPdfSingleArray = array of Single;
Single-precision floating-point array used by text object character position setters.
type TPdfPrintPageRange = record
StartPage: Integer;
EndPage: Integer;
end;
type TPdfPrintPageRanges = array of TPdfPrintPageRange;
One-based print page ranges from the document viewer preferences.
type TPdfStructureElement = record
Level: Integer;
ParentIndex: Integer;
TypeName: WString;
ObjectType: WString;
Title: WString;
AlternateText: WString;
ActualText: WString;
Expansion: WString;
ID: WString;
Language: WString;
MarkedContentID: Integer;
MarkedContentIDs: TPdfIntegerArray;
ChildCount: Integer;
ChildMarkedContentIDs: TPdfIntegerArray;
AttributeCount: Integer;
end;
type TPdfStructureElements = array of TPdfStructureElement;
Flattened logical structure element data for tagged PDF pages.
type TPdfVersion = (pvUnknown, pv10, pv11, pv12, pv13, pv14, pv15, pv16, pv17);
A PDF-fájl verziója vagy egy explicit SaveAs célérték. Az értékek lehetnek: ismeretlen verzió, PDF 1.0 és 1.7 közötti verziók. A PDF 1.3 és PDF 1.7 közötti explicit SaveAs célértékek normalizálva és a kiválasztott PDF-verzióhoz ellenőrizve vannak
type TPrintPaperHandling = (phUndefined, phSimplex, phDuplexFlipShortEdge, phDuplexFlipLongEdge);
Print paper handling options.
type TPdfPrintMode = (prEmf, prTextOnly, prPostScript2, prPostScript3, prPostScript2PassThrough, prPostScript3PassThrough, prEmfImageMasks, prPostScript3Type42, prPostScript3Type42PassThrough);
Windows PDFium print output mode selected by SetPdfPrintMode.
type TRenderOption = (reAnnotations, reLcd, reNoNativeText, reGrayscale, reDebugInfo, reNoCatchException, reLimitCache, reHalftone, rePrinting, reReverseByteOrder, reNoSmoothText, reNoSmoothImage, reNoSmoothPath, reInvert, reNightDuotone);
type TRenderOptions = set of TRenderOption;
Oldalrenderelési jelzők
type TRotation = (ro0, ro90, ro180, ro270);
A PDF-oldal elforgatása. Az oldalszög az óramutató járásával megegyezően forog
type TSaveOption = (saNone, saIncremental, saNoIncremental, saRemoveSecurity);
Meghatározza, hogyan lesz elmentve a PDF-dokumentum
type TSearchOption = (seCaseSensitive, seWholeWord, seConsecutive);
type TSearchOptions = set of TSearchOption;
Keresési jelzők
type TWebLink = record
Url: WString;
Rectangles: TPdfRectangles;
end;
type TWebLinks = array of TWebLink;
URL information and boundaries for the web link.
type WString = {$ifdef D2009PLUS} string {$else} WideString {$endif D2009PLUS};
Wide string.
const PointsPerInch: Integer = 72;
PDF uses points with a density of 72 points per inch.
const FLAT_NORMALDISPLAY = 0;
const FLAT_PRINT = 1;
Flattening profiles passed to FlattenPage / FlattenAllPages. FLAT_NORMALDISPLAY targets screen display; FLAT_PRINT targets printed output.
const FLATTEN_FAIL = 0;
const FLATTEN_SUCCESS = 1;
const FLATTEN_NOTHINGTODO = 2;
Result codes returned by FlattenPage.
type TPdfReadingUnit = record
Text: WString;
Kind: TPdfContentFragmentKind;
HeadingLevel: Integer;
Page: Integer;
Rects: TPdfRectangles;
FragmentIndex: Integer;
SentenceIndex: Integer;
IsAlternateText: Boolean;
Language: WString;
end
type TPdfReadingUnits = array of TPdfReadingUnit;
Sentence-level reading units used by text-to-speech and assistive listen-reading workflows
type TPdfWordBox = record
Text: WString;
StartIndex: Integer;
Count: Integer;
Rect: TPdfRectangle;
Page: Integer;
end
type TPdfWordBoxes = array of TPdfWordBox;
Word-level text ranges and page rectangles used by synchronized reading highlights
type TPdfSpokenSpan = record
SpokenStart: Integer;
SpokenCount: Integer;
Page: Integer;
StartIndex: Integer;
Count: Integer;
end
type TPdfSpokenSpans = array of TPdfSpokenSpan;
Mapped runs that translate speech-engine offsets back to PDF page text
type TPdfSpokenText = record
Text: WString;
Spans: TPdfSpokenSpans;
end
type TPdfSpokenTexts = array of TPdfSpokenText;
Speech chunks and source mappings used by read-aloud workflows and TPdfReadingSession
type TPdfReadingSessionState = (pssIdle, pssSpeaking, pssPaused);
Playback state reported by TPdfReadingSession
var LibraryName: string = 'pdfium.dll';
Name of the standard PDFium library used when EnableV8Engine is False. Can be changed before calling LoadLibrary.
var EnableV8Engine: Boolean = False;
Betöltés előtt állítsa True értékre, hogy a megfelelő Win32 vagy Win64 DLLs mappából a pdfium.v8.dll legyen kiválasztva