Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all,
i have an Winform application, its requirement is direct print any pdf document with taking printing setting Page Scaling as 'Shrink to printable area'.
is it possible .
how to set an option 'Page Scaling' in c# coding ?
Posted

 
Share this answer
 
v2
Hi,


my suggestion use ITextSharp Tool for PDF Generation

Then you can set Page Size for PDF

var doc = new Document(PageSize.A5);


For Full Reference follow below Link

Creating PDF documents with iTextSharp[^]

Thanks

Siva Rm K
 
Share this answer
 

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