وثائق PDFiumPas

SaveAsPdfE الطريقة

يحافظ إدخال API هذا على المعرّفات والتواقيع وكتل الكود ومصطلحات PDF بصيغتها الأصلية.
المكون: TPdf  ·  الوحدة: PDFium
يحفظ المستند الحالي كملف متوافق مع PDF/E-1 عبر معالجة PDF الأساسي بتحديث تزايدي يحقن علامات تنسيق ملف PDF/E-1 (ISO 24517-1:2008)

الصياغة

function SaveAsPdfE(const FileName: string): Boolean; overload;
function SaveAsPdfE(const FileName: string; const Options: TPdfESaveOptions): Boolean; overload;

الوصف

ينفذ SaveAsPdfE عملية SaveAs العادية أولًا، ثم يضيف فوق البايتات المحفوظة تحديثًا تزايديًا يرتقي بالملف إلى أرشيف PDF/E-1 (ISO 24517-1:2008، وهو تنسيق المستندات الهندسية المشتق من PDF 1.6). وتحقن المعالجة اللاحقة أربع فئات من العلامات في الدفق المحفوظ

The output stays byte-identical to the base SaveAs result up to the end of the original PDF; only the incremental update is appended Existing readers that don't understand PDF/E still render the file exactly as the regular SaveAs would. The two overloads differ only in how the configuration is passed in: the file-name-only form uses TPdfESaveOptions.Default with auto-population from FPDF_GetMetaText and FPDF_GetFileIdentifier, while the TPdfESaveOptions form lets the caller override Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate, DocumentId, InstanceId, and the Version string (defaults to "PDF/E-1").

Returns True on success. Returns False if the base SaveAs failed or if the incremental update could not be attached (typically an invalid trailer in the saved bytes).

ملاحظات

مثال

// Simple PDF/E-1 output, options auto-populated from the document
if Pdf1.SaveAsPdfE('C:\Drawing.pdfe.pdf') then
  ShowMessage('Saved PDF/E-1');

// With explicit options (Title overridden, custom Producer)
var
  Opts: TPdfESaveOptions;
begin
  Opts := TPdfESaveOptions.Default;
  Opts.Title := 'Bridge Assembly Drawing - Sheet 12';
  Opts.Producer := 'PDFiumPas';
  Pdf1.SaveAsPdfE('C:\Bridge.pdfe.pdf', Opts);
end;

انظر أيضا

SaveAsPdfEToStream, ValidatePdfE, PdfEConformance, SaveAsPdfA, SaveAsPdfUa