Ten wpis API zachowuje identyfikatory, sygnatury, bloki kodu i terminy PDF w oryginalnej postaci.
Komponent: TPdf · Moduł: PDFium
Returns the document XMP metadata packet as a wide string.
Składnia
property MetaText;
Opis
Returns the document XMP metadata packet as a wide string.
Empty when the document has no /Metadata stream.
Wraps the corresponding PDFium API and exposes it as a TPdf instance member so consumers do not have to manage FPDF_DOCUMENT handles directly.
Uwagi
- Zawsze sprawdzaj
Pdf1.Active przed wywołaniem operacji zakresu strony; w przeciwnym razie metody wymagające otwartego dokumentu zgłaszają EPdfError
- Metody edycji dokumentu (AddPage / DeletePage / UpdatePage / CreateAnnotation) pozostawiają dokument w pamięci w stanie zmodyfikowanym — pamiętaj o wywołaniu
SaveToFile, aby zapisać zmiany
- Class methods (LoadLibrary / UnloadLibrary / GetRecommendedV8Flags) can be called without a TPdf instance.
Przykład
if Pdf1.Active then
Pdf1.MetaText;
Zobacz też