I am pretty new to PDF programming world and for study PDF ,I am prefering PDF specification.
I can manage Printing text on my page but when my text length goes out to the page range it get crop
..so my requirement is how to justified that text line on next line
please suggest how to manage this problem.
currently I am tackling this prob by
but I have to do it manually..
thanks in advance.
You will need to write a text layout engine and then using the layout information that you’ve produced, output the necessary PDF constructs.
In order to do that, of course, you will need the font metrics.
And at some point you will need to learn about font embedding, and then subsetting, and then encodings, and then ….
Now you can see why we recommend that you use an existing PDF library instead of writing your own. You are just wasting your time…
You have to do this manually. That is just one reason why it's in general a
bad idea to create PDF files from scratch: You have to process all the font
metrics yourself and find out how wide your text will be, and then position
it accordingly on the page. When you use a PDF library or framework, that
is usually done for you (or at least there are ways to get to that
information in a much more user/programmer friendly way).
Karl Heinz Kremer
PDF Acrobatics Without a Net
thanks for your quick reply again
actually, Its waste of time n waste to resources may be..but we are developing a serviced based product in which a small part of pdf comes.
we almost developed own pdf developer for HTML5 ,Yes it is not 100% developed and correct.
just integrating some features which are as per our need.
by the way thanks for Font embedding hint.. I will work on that surely,
Europe, Middle East and Africa