Click here to Skip to main content
15,887,856 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have converted the html page to pdf but i m facing only one problem that my content of the pdf is getting outside the frame of the convertted file while the html size is nice when i see it.suggest me what should i do and i have used itextsharp class with c#
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jan-12 20:17pm    
Why should you do anything at all. It does not look like a problem.
--SA

1 solution

The problem is not correctly formulated and probably does not even exist; so you probably trying to raise some artificial problem. The reason for this is very simple: HTML page does not have any certain size. The actual rendered size of a page you can observe in a Web browser depends on many input factors; first of all, on the client width of the browser window at any given moment; there are many other factors such as current zoom, default browser styles (CSS usually does not specify each and every possible rendering option, a lot is left to the default), features and peculiarities of a particular rendering engine and more.

Most likely, you still have some real problem. In this case, you approach it from a wrong side. You need to describe the ultimate goals of your application and ask what could you do in certain case, in sufficient detail.

—SA
 
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