Hi,

I'm a bit confused about attribute names in XFDF vs COS syntax.

For example, in FDFAnnotationFreeText.java the rotation of the annotation is 
taken from an attribute with the name "rotation".

But :
The current Foxit PDF SDK for Web uses "rotate" as the attribute name in its 
XFDF instead.
Some older versions of Adobe Acrobat also produced XFDF with "rotate".
However, some Adobe Readers (or programs identifying themselves as such) use 
"rotation".

Now I'm unsure about what is "the truth" here.

I don't have access to ISO 19444, which might explain everything related to 
XFDF, but I found this quote from pfda.org

"XFDF is the XML equivalent to FDF files, which are defined in clause 12.7.8 of 
ISO 32000-2.also
FDF files uses the same COS syntax that PDF files use."

and as the COS name for rotation is "Rotate" (at least for pages), I'd assume 
the attribute in XFDF should rather be "rotate" as well.

Then again, the PDF 2.0 spec only mentions "NoRotate" for annotations and that 
makes me wonder if annotations should have "rotate"/"rotation" attributes in 
the first place.

I know I can just parse my XFDF and look for any "rotate" and replace or 
duplicate it with a "rotation" attribute before I feed it into PDFBox.
But I cannot  stop wondering if there is a definitive answer to the question 
what is the correct attribute name or if even both are "wrong".

If anyone with access to ISO 19444 would be so kind to shed some light on 
whether annotations, mainly of type FreeText, should or should not have a 
"rotate" or "rotation" attribute, I would be very thankful.

Sorry for the rambling,

Kai



[cid:9ce44e7a-b152-46ec-93fc-4746f516556b]<https://thinkproject.com/de/>

Kai Keggenhoff / Senior Software Developer



thinkproject.com<https://thinkproject.com/de> <https://thinkproject.com/de>

[cid:fdf1bbba-5521-41e7-a3f5-acc1e0e2ae74]<https://www.linkedin.com/company/thinkproject-dach/posts/?feedView=all>[cid:95814050-0959-4242-8dd3-6dc01db0cf40]<https://twitter.com/thinkproject_>

Read our legal information (imprint) 
here<https://thinkproject.com/de/impressum/>.


Reply via email to