Home > Back-end >  Highlighting and Annotating text in pdf programmatically
Highlighting and Annotating text in pdf programmatically

Time:06-14

I have a pdf for piping and instrument diagram (P&ID) something like this enter image description here

The highly complex structure encourages me to suggest it may be easier to work with the source since annotation text is currently spread across many different content groups.

Here is the target so luckily there seems to be a PI and 4507 closely related

0 -1 1 0 9546 14389 Tm
0 Tc
84.96094 Tz 0 Tr
(PI) Tj
ET
/F1 96.928 Tf
BT
0 -1 1 0 9413 14442 Tm
0 Tc
84.96094 Tz 0 Tr
(4507) Tj
ET
12 w EMC /OC /oc2 BDC

You asked how to add annotations in bulk, so although this is 2 of your hundred, you just need to expand this 196 more times. So annotation data is a variation of Forms Data, thus to add in bulk it is exactly the same base process, you add the Tag/Value data pairs via an FDF file which then opens with all annotation in any conforming PDF read/editor such as Acrobat Reader, Tracker X-change or Foxit. For more details including "Export comments to AutoCAD" (or Word) see Adobe Help they refer to the task as merging comments enter image description here

           
  • Related