Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Any XFDF syntax gurus ??

New Here ,
Jun 26, 2024 Jun 26, 2024

Adobe DC export of comments converts the dashed line border of text box to a solid line border using XFDF (FDF works fine) when importing the XFDF into another PDF.  Is there a dashed line border attribute that I can add to the freetext element?

 

thx

 

><freetext color="#C7FFFF" creationdate="D:00000000000000Z" flags="print" date="D:20240626103841-04'00'" name="1e0db4a8-352b-80d9-d9f6-8cb1a31b0839" page="0" rect="47.506622,682.757996,97.227615,698.351013" subject="Text Box" 
><contents-richtext
><body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="Acrobat:24.2.0" xfa:spec="2.0.2" style="font-size:12.0pt;text-align:left;color:#000000;font-weight:normal;font-style:normal;font-family:Arial;font-stretch:normal"
><p dir="ltr"
>QSDTC</p
></body
></contents-richtext
><defaultappearance
>0 0 0 rg /Arial 12 Tf</defaultappearance
><defaultstyle
>font: Arial 12.0pt; text-align:left; color:#000000 </defaultstyle
></freetext

TOPICS
Edit and convert PDFs , How to
523
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2024 Jun 26, 2024

The definition of the line around an annotation is done via the dash property, which is an array of numbers, and the style property, which needs to be set as D. If those aren't included in the XFDF export then it means they won't carry over when creating a new comment based off that data. Are you saying it does work with FDF? If so, it could be a bug with the XFDF format, or at least an oversight.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 26, 2024 Jun 26, 2024

Yes, it works in FDF, but not XFDF.  Adobe confirmed it was a bug in XFDF export.  However, I can't find the syntax to add a dashed border arround the annotation.  Looking for example of correct syntax which I can programmatically add to the XFDF file as a post process.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 27, 2024 Jun 27, 2024

I can't guarantee it will work, but try adding the following after 'subject="Text Box"' :

style="D" dash="2,3"

 

[Edited: style should be "D", not "d"]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 27, 2024 Jun 27, 2024
LATEST

Thanks for the syntax.  Unfortunately, it didn't work.  I tried a bunch of permutations as well (D, DASH, DASHES with and without "2,3" and "3,3").  Seems like this would be an easy fix.  Adobe was no help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines