function MergePDFFiles(PDFFile1 : Text;PDFFile2 : Text;NewPDFFile : Text) PDFDocOut := PDFDocOut.PdfDocument; AddPages( PDFFile1, PDFDocOut); AddPages( PDFFile2, PDFDocOut); IF EXISTS( NewPDFFile) THEN ERASE( NewPDFFile); PDFDocOut.Save( NewPDFFile); PDFDocOut.Close; PDFDocOut.Dispose;
PDFDocOut DotNet PdfSharp.Pdf.PdfDocument.'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb'
LOCAL function AddPages(PDFFileName : Text;VAR DestPDF : DotNet "PdfSharp.Pdf.PdfDocument") FromPDF := PDFReader.Open( PDFFileName, PDFOpenDocMode.Import); FOR i := 0 TO FromPDF.PageCount-1 DO DestPDF.AddPage( FromPDF.Pages.Item(i)); FromPDF.Close; FromPDF.Dispose;
FromPDF DotNet PdfSharp.Pdf.PdfDocument.'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb' PDFReader DotNet PdfSharp.Pdf.IO.PdfReader.'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb' PDFOpenDocMode DotNet PdfSharp.Pdf.IO.PdfDocumentOpenMode.'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb' i Integer
Comments
With my Errors i found pdfsharp 1.50 beta3b, but only source code, mb u have of 1.50beta3b pdfsharp.dll?
UPD.I'll rebuild source code and i saw Types with pdfsharp without WPF, OMG!
THIS IS WORK!
PDFOpenDocMode DotNet PdfSharp.Pdf.IO.PdfDocumentOpenMode.'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb'
Can anybody help me or had the same problem?