I have to place several thousand text annotations on the PDF. The annotation text is generated by a database. It is my job to place them on the right spot in the PDF. Now I'd like to generate these annotations and put them to the clipboard, from where I can place on the PDF. This should include dimension, frame, background, color, font, size and text. It should be possible to place a set of annotations to the clipboard. And it should be possible to insert them at the cursor position.
Will this be possible? And where will I find the clipboard format used by annotations ? Are there API functions to create such objects ?
Clipboard data format used by annotations
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 4
- Joined: Fri Feb 23, 2018 7:58 am
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Clipboard data format used by annotations
If you want to import a bunch of annotations into the document, the best way is to form an XFDF file and import it.
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 4
- Joined: Fri Feb 23, 2018 7:58 am
Re: Clipboard data format used by annotations
I have to place the annotions manually to the desired place (floor plans of huge buildings). The individual annotation text is generated by a database program.
I'd like to generate an annotation with given attributes and text to place it onto the clipboard.
I'd like to generate an annotation with given attributes and text to place it onto the clipboard.
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Clipboard data format used by annotations
I'm afraid it is not possible.
Another option I can propose is to use JS to create annotations.
Another option I can propose is to use JS to create annotations.
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 4
- Joined: Fri Feb 23, 2018 7:58 am
Re: Clipboard data format used by annotations
How to create an annotation from JS? Is there an API?
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: Clipboard data format used by annotations
Hello SchorschGaggo,
Yes - you can use this JS API reference file:
https://opensource.adobe.com/dc-acrobat ... apiref.pdf
Kind regards,
Stefan
Yes - you can use this JS API reference file:
https://opensource.adobe.com/dc-acrobat ... apiref.pdf
Kind regards,
Stefan