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

Document Generation API. The support of bidirectional texts

New Here ,
Aug 12, 2024 Aug 12, 2024

When using the "Document Generation API", I encountered a problem where Hebrew text along with English words is converted to PDF with unexpected results.
The "Document Generation API" documentation does not state that it is currently optimized for English-language content, as the "PDF Extract API" documentation does. But in practice, it looks like the "Document Generation API" is not optimized for non-English content, particularly for RTL cultures.
I noticed in the documentation that this API supports using some HTML tags for text formatting. I tried adding the 'dir="rtl"' attribute to indicate the writing direction but with no luck. Is there any solution or a workaround to correctly convert bidirectional text to PDF with the "Document Generation API"?

192
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 ,
Aug 13, 2024 Aug 13, 2024
LATEST
I had found a workaround.
The Acrobat Services API works fine with the UAX #9: Unicode Bidirectional Algorithm. JSON file must contain text with characters that define the writing direction of a particular text block (\u202C, \u202B, etc.)
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
Resources