|
Cet exemple montre comment copier la page numéro 5 du document source vers la page numéro 0 du document courant var DestDoc, SourceDoc: THotPDF; begin SourceDoc := THotPDF.Create( nil ); try SourceDoc.LoadFromFile( 'SourceDoc.pdf' ); DestDoc := THotPDF.Create(nil); try DestDoc.FileName := ( 'DestDoc.pdf' ); DestDoc.BeginDoc; DestDoc.CopyPageFromDocument( SourceDoc, 5, 0 ); // Copies page number 5 from source document to current document page number 0 DestDoc.EndDoc; finally DestDoc.Free; end; finally SourceDoc.Free; end; end; |