The latest build of Prince now supports PDF text annotations!
You can create a PDF text annotation on an element or pseudo-element with these new properties:
prince-pdf-annotation-type: none | text
prince-pdf-annotation-contents: none | <string>
prince-pdf-annotation-author: none | <string>
prince-pdf-annotation-title: none | <string>
prince-pdf-annotation-createdate: none | <string> (in ISO 8601 format)
prince-pdf-annotation-modifydate: none | <string> (in ISO 8601 format)
prince-pdf-annotation-color: <color>
prince-pdf-annotation-position:
( <x-edge> <length-percent>? ) || ( <y-edge> <length-percent>? )
<x-edge> = left | right | page-left | page-right
<y-edge> = top | bottom | page-top | page-bottom
Here is an example:
We may support other PDF annotation types in the future, please let us know your experiences with PDF annotations!
You can create a PDF text annotation on an element or pseudo-element with these new properties:
prince-pdf-annotation-type: none | text
prince-pdf-annotation-contents: none | <string>
prince-pdf-annotation-author: none | <string>
prince-pdf-annotation-title: none | <string>
prince-pdf-annotation-createdate: none | <string> (in ISO 8601 format)
prince-pdf-annotation-modifydate: none | <string> (in ISO 8601 format)
prince-pdf-annotation-color: <color>
prince-pdf-annotation-position:
( <x-edge> <length-percent>? ) || ( <y-edge> <length-percent>? )
<x-edge> = left | right | page-left | page-right
<y-edge> = top | bottom | page-top | page-bottom
Here is an example:
span.annot {
prince-pdf-annotation-type: text;
prince-pdf-annotation-author: "Author Name";
prince-pdf-annotation-contents: "Here is the annotation contents"
}
We may support other PDF annotation types in the future, please let us know your experiences with PDF annotations!