Код: Выделить всё
CPDF pdf = new(), pdf2 = new();
pdf.CreateNewPDF(null);
pdf2.CreateNewPDF(null);
pdf.OpenImportBuffer(bytes[0..written], TPwdType.ptOpen, null);
// pdf is valid at this point
/////pdf.CopyPageTo(pdf2) ?????
Подробнее здесь: https://stackoverflow.com/questions/791 ... nother-pdf
Мобильная версия