Importing a PDF pages from existing file to add to new C1Pdf (WPF)

Posted by: avarma on 2 November 2020, 2:41 am EST

    • Post Options:
    • Link

    Posted 2 November 2020, 2:41 am EST

    hi,

    I have a scenario where I need to create a PDF file (from a WPF application) with pages that are from pre-defined PDF template files i.e. I need to make a new PDF appending multiple PDF files.

    The idea is to add to the new C1 PDF, page by page from the existing pdf templates. Once a page is added to the new C1 PDF, I need to add fields or images on top of that page at specific locations.

    Which API classes should I be using to achieve this?

    I am trying to load the pre-defined PDF template into a C1PdfDocumentSource but how can I loop through the pages? I do not see any API methods for this.

    Thanks.

  • Posted 2 November 2020, 6:56 pm EST

    Hello,

    Unfortunately, this is not supported with C1PdfDocumentSource. However, using GcPdf you can generate PDF documents but it takes the template in the form of *html. Please refer following pages:

    https://www.grapecity.com/documents-api-pdf/docs/online/convert-html-to-pdf-report.html

    https://www.grapecity.com/documents-api-pdf/demos/html/product-list-template/code-cs

    Regards,

  • Posted 5 November 2020, 3:04 am EST

    Thank you.

    Is there any feature in the .NET C1PDF API (https://www.grapecity.com/componentone/docs/win/online-pdf/overview.html) that can load an existing PDF document into a new C1PdfDocument() ?

  • Posted 5 November 2020, 10:14 pm EST

    Hi,

    C1PDF is used to create PDF documents from your applications. So, it doesn’t allow to load existing PDF documents.

    Thanks,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels