Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I need to generate PDF for Shopping bill. my client using a particular Size 8 1/2" X 14" of paper for printing the bill. I am using itextSharp for PDF generation.
what is the page size to be used for PDF generation in C# code to print exactly in a 8 1/2" X 14" dimensions of paper ?
C#
Document doc = new Document(PageSize.A4);

In client billing paper there is 3 Empty blocks , i need to generate PDF data to be fit exactly in that Empty blocks for printing the bill.
Posted

1 solution

8.5" x 14" is a US paper size called Legal...
(http://en.wikipedia.org/wiki/Paper_size[^])
 
Share this answer
 
Comments
dorababu407 18-Mar-15 9:09am    
yes it is Legal paper in US, what Document Size need to be taken for this legal paper in Code ?
Kornfeld Eliyahu Peter 18-Mar-15 9:13am    
It is called LEGAL - http://www.afterlogic.com/mailbee-net/docs-itextsharp/Index.html
dorababu407 18-Mar-15 9:23am    
@Kornfeld Eliyahu Peter,thank you .

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

  Print Answers RSS


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