PDFium Delphi Component Docs

ImportPages الطريقة

Component: TPdf  ·  Unit: PDFium
ينسخ صفحة واحدة أو أكثر من TPdf مفتوح آخر إلى هذا المستند

Syntax

function ImportPages(const Source: TPdf; const Range: WString = ''): Boolean

Description

ينسخ صفحة واحدة أو أكثر من TPdf مفتوح آخر إلى هذا المستند.

مرر Range فارغًا لاستيراد كل الصفحات؛ أو "1-3,5" لمجموعة فرعية مخصصة.

تُخزَّن كل تعديلات الصفحة الحالية مؤقتًا في التمثيل الموجود في ذاكرة PDFium. استدعِ UpdatePage لتحديث ذاكرة العرض المؤقتة و SaveToFile لحفظ التغييرات بشكل دائم.

Remarks

Example

begin
  if Pdf1.Active then
  begin
    Pdf1.MoveTo(100, 100);
    Pdf1.LineTo(200, 150);
    Pdf1.LineTo(200, 200);
    Pdf1.ClosePath;
    Pdf1.AddPath(clRed, 1.5, clYellow, fmWinding);
    Pdf1.UpdatePage;
  end;
end;

See Also

AddPage, DeletePage, ImportPreferences