The PDF standard describes various tools that allow you to create an additional content on the page. In this topic we will talk about markup annotation tools. Markup annotations points in specific way to some places on the page and contains additional text info.
Most types of the markup annotations support two states: open and closed. Closed state means that annotation will appear on the page in some distinctive form such as an icon, box, stamp, etc. When the user activates the annotation by clicking it, it exhibits its associated object (annotation goes to the open state).
lets take a word -
and
It is present in both the paragraphs but I would like to annotate only in 1st paragraph by giving the 1st paragraph as input.
Could you please share a sample input along with expected output PDF? We will try to create a code sample for you to achieve results similar to expected output file and share with you.
Here in the below pdf i have highlighted “is” in the first paragraph.
so is will be there in whole document but it should highlight in 1st paragraph only.
Inputs to the PDF are one is paragraph and other is markup text
forexample : markupPdf(paragraph, actualtext) 1st paragraph -
Adobe® Portable Document Format (PDF) is a universal file format that preserves all
of the fonts, formatting, colours and graphics of any source document, regardless of
the application and platform used to create it. 2nd actualText -
is
if actualtext is is present in multiple places in paragraph, do we have anything like sentences that takes exact match. means like inputs will be 3 -> paragraph, sentence, is
here paragraph is int(taking paragraph number).
any possibility to have paragraph as text instead of taking of paragraph number as input.
If there are number of pages how can we get the paragraph number.