I need to take a big pdf document and goto certain pages and locations and add some comments there for the section number.
I tried to do this by first adding text boxes in those regions and then i dynamically opened it with my program and put the value in them.
However the issue is that each line added can only start from a new line.
But i want to add the text inside a paragraph or at the end or start, it should flow from middle of one line to the middle of another.
I dont want it looking different, inside a text box, but rather look normal like part of the text.
Please let me know how i can do this, i looked at the samples and examples but could not find an example to help add text inside a paragraph of a pdf.
thanks
this is development question, my environment is my local system with window os and visual studio and c#
thing is in some cases the text box is inside a paragraph and that is fine, however when the text box is filled with a shorter word there is a gap and if there is a longer word the right bottom of the text box has a +.
let us assume that is not the issue, however when the text box needs to start in the middle of the para in the middle of a line and till the end, we cant start the text box in a zig sa manner to start fromt he middle of a line, but from the start of the next line, in a rectange form.
or is there a way to just add to an existing text without adding a text box
like to say goto this page this location and at the end of that text in the sentence, add this sentence and continue from the middle of that line to the next few lines.
or
should i concatenate the string to the constant string and post the whole para at a time. this way gaps are avoided and we can start the varible text from the middle of the para?
Then how do i accomplish this task, let us say below is the para on the acrobat file
Colestrol will accelerate heart disease risk by promoting fatty
deposits and inflammation in the arteries of the heart. Reduction
of excess body fat slows this process. Your Body Mass Index
indicates [<moderate obesity>] and it is a must [<that you lose
weight and increase exercise>] to reduce your risk of heart disease.
To accomplish this task, we are inserting two variables shown as [<bold>]
There are two issues here:-
1) [<moderate obesity>] - if this is a short word like "normal", then there will be white space at the end of the line.
2) [<that...exercise>] - this starts in the middle of a line and ends in the middle of the next line.
My guess is i need to add the variable string to the rest of the para at run time and set the whole para dynamically in one shot.
So the whole para would be comming in from the server side code.
thanks let me know if there is any other way for rich text edit,
so for now, i will dynamically form each paragraph on the server side and put it inside the text box at run time, this way there are no gaps.
and to format some words of the paragraph differently, the only way is to use JavaScript APIs. I guess i can find these examples in the sdk kit, if not please provide.
eitherway, i thanks you both for all the help and assistance ![]()
North America
Europe, Middle East and Africa
Asia Pacific