I'm having problems while trying to merge 2 pdf's together.
The code i used:
Code: Select all
Var OldPDF : hPDF;
OV : hPDF;
CPI : Array of LPPXCp_ContentPlaceInfo;
PXCp_Init(@OldPDF.....
PXCp_Init(@OV.....
PXCp_ReadDocumentW(OldPDF....
PXCp_ReadDocumentW(OV.....
PXCp_GetPagesCount(Alte....
until this the code is ok.
Then i do the following:
Code: Select all
SetLength(CPI,NumberOfPages);
for i:=0 to NumberOfPages-1 do
begin
New(CPI[I]);
CPI[Lauf].DestPage:=I;
CPI[Lauf].SrcPage:=0;
CPI[Lauf].Alignment:=CPA_HorFit or CPA_VerFit or CPA_Foreground;
end;
Err:=pxcp_placeContents(OldPDF,OV,NumberOfPages,CPI[0],0);
I have tried this with a pdf with 3 pages.
The resulting pdf have the overlay only at page 1.
With a OldPDF of 100 pages, the overlay are on pages 1,10,15,18 (random?)
What i am missing?
(Sorry for my bad english)