Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

How to combine pdf documents C#

using (PdfDocument one = PdfReader.Open("file1.pdf", PdfDocumentOpenMode.Import))
using (PdfDocument two = PdfReader.Open("file2.pdf", PdfDocumentOpenMode.Import))
using (PdfDocument outPdf = new PdfDocument())
{                
    CopyPages(one, outPdf);
    CopyPages(two, outPdf);

    outPdf.Save("file1and2.pdf");
}

void CopyPages(PdfDocument from, PdfDocument to)
{
    for (int i = 0; i < from.PageCount; i++)
    {
        to.AddPage(from.Pages[i]);
    }
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: typescript object type 
Typescript :: type script array 
Typescript :: how to add multiple arguments in discord commands rewrite 
Typescript :: the android gradle plugin supports only kotlin gradle plugin version 1.3.10 and higher 
Typescript :: dart exit loop 
Typescript :: typescript union types 
Typescript :: web.contents timeout 
Typescript :: wc term_exists category 
Typescript :: react-native use typescript 
Typescript :: Ignoring ffi-1.15.3 because its extensions are not built 
Typescript :: squash commits on branch 
Typescript :: update behaviorsubject value without emitting 
Typescript :: scripted testing and exploratory testing 
Typescript :: outside click hook react 
Typescript :: angular from date to date validation 
Typescript :: laravel validation exists multiple tables laravel 
Typescript :: Scripts cannot be executed on this system. 
Typescript :: read/write linked lists to file 
Typescript :: angular validations 
Typescript :: data type of stack in c 
Typescript :: typescript assert non null 
Typescript :: difference in minutes between 2 time inputs laravel 
Typescript :: mui styled typescript 
Typescript :: share data across tab through localstorage 
Typescript :: typescript doesnt read .d.ts 
Typescript :: react hide elements from window print 
Typescript :: puts with details ruby 
Typescript :: import validator adonisjs 5 
Typescript :: 365+6 
Typescript :: conditional rendering react typescript 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =