Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# itext 7 pdf add pdf

PdfDocument pdf = new PdfDocument(new PdfWriter(dest));
PdfMerger merger = new PdfMerger(pdf);

//Add pages from the first document
PdfDocument firstSourcePdf = new PdfDocument(new PdfReader(SRC1));
merger.merge(firstSourcePdf, 1, firstSourcePdf.getNumberOfPages());

//Add pages from the second pdf document
PdfDocument secondSourcePdf = new PdfDocument(new PdfReader(SRC2));
merger.merge(secondSourcePdf, 1, secondSourcePdf.getNumberOfPages());

firstSourcePdf.close();
secondSourcePdf.close();
pdf.close();
Comment

PREVIOUS NEXT
Code Example
Csharp :: restart level unity 
Csharp :: how to allow user import image c# 
Csharp :: .net framework get configuration value from web.config 
Csharp :: unity c# debug.log 
Csharp :: c# read file line by line 
Csharp :: how to write int array to console c# 
Csharp :: make string uppercase c# 
Csharp :: c# byte array to file 
Csharp :: create instance of class given class name string c# 
Csharp :: linq from select 
Csharp :: how to do a messagebox in c# 
Csharp :: exit button unity code 
Csharp :: OnMousedown unity ui 
Csharp :: how to remove space between string in c# 
Csharp :: c# new dictionary linq 
Csharp :: nested dictionary c# 
Csharp :: how to make dictionary c# 
Csharp :: unity cast int to float 
Csharp :: c# int array length 
Csharp :: clear gridview data in c# 
Csharp :: lock pc using c# 
Csharp :: database update dotnet 
Csharp :: weapon switching unity 
Csharp :: get tree node godot 
Csharp :: Gameobject.Find in unityC# 
Csharp :: how to save a dictionary as a csv file in c# 
Csharp :: c# remove word from string 
Csharp :: vector2 with switch statement 
Csharp :: find how many digits a number has 
Csharp :: c# get dictionary first key 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =