Options

Merge PDF files with iTextSharp

jensthomsenjensthomsen Member Posts: 173
edited 2013-11-29 in NAV Three Tier
Has anyone out there been using the .Net interopt iTextSharp to do a simple merge of 2 pdf files?

Comments

  • Options
    jensthomsenjensthomsen Member Posts: 173
    Here's exactly the functionality I'm looking for, but written in C#..
    http://www.dotnetspider.com/resources/3 ... brary.aspx
    And since I'm not that # in coding C :mrgreen: I'd like the C# code translated into something usable in C/AL
  • Options
    jensthomsenjensthomsen Member Posts: 173
    Hmmmm, no answer so far :cry:
    I'm looking for a simple way to merge file1.pdf and file2.pdf into one file file3.pdf. I would prefer using iTextSharp but if anyone has another (better) solution...?
  • Options
    Rob_HansenRob_Hansen Member Posts: 296
    I used PDFTechLib from PDF Technologies for this (http://www.pdf-technologies.com/). The code was pretty simple:

    CLEAR(ClientPDFTechDocument);
    CLEAR(ClientPDFTechSignature);
    ClientPDFTechSignature.SetLicense(<your license key here>);
    ClientPDFTechDocument := ClientPDFTechDocument.PDFDocument(OutputFileName);
    ClientPDFTechDocument.Pages.Delete(ClientPDFTechDocument.CurrentPage);
    ClientPDFTechDocument.LoadPdf(<first PDF file path/name>,'');
    ClientPDFTechDocument.LoadPdf(<second PDF file path/name>,'');
    ClientPDFTechDocument.Save;
    CLEAR(ClientPDFTechDocument);
  • Options
    jensthomsenjensthomsen Member Posts: 173
    rdhansen:
    Thx for your reply, but I'd rather use iTextSharp than another 3. party product:-)
Sign In or Register to comment.