Click here to Skip to main content
15,891,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All.

I am working with PDF file and facing a problem from last 1 day. The problem is I have a PDF(test.pdf) of Page Size: 10.00 x 12.00 inches and I have to change in PDF(test.pdf) Page Size: 8.73 x 11.42 inches using iTextSharp in c#.

Note: The name of original pdf and resized pdf must be same.

Waiting for your earliest reply.
Posted
Updated 12-Jan-14 22:59pm
v2
Comments
Wombaticus 13-Jan-14 9:13am    
In VB you just set the page size when creating the doc:
Dim pdfDoc As New Document(PageSize.A4)
...whatever that is in C#...
Document pdfDoc = new Document(PageSize.A4);
or something...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900