Document Reflow with XLIFF

Content reflow is designed to eliminate formatting headaches when translating or updating PDFs. Instead of manually copy-pasting content and fixing layouts, it extracts text into XLIFF format, an industry-standard translation file that maintains

  • Fonts
  • Layouts
  • Tables

No more manual reformatting.

The format provides seamless integration with translation tools and enterprise scalability.

How Does Content Reflow Work for my translation needs?

Unlike traditional translation workflows that require manually extracting and reinserting text, XLIFF Reflow automates this process by converting text into XLIFF format, an industry-standard file type for translation workflows

Step 1

Extract Text into XLIFF Format

1// Open a PDF to translate.
2PDFDoc doc(input_path + "document.pdf");
3
4// Extract the xlf to file and field the PDF for translation
5TransPDF::ExtractXLIFF(doc, output_path + "output.xlf", pageSet);

Step 2

Do your translation. Here you would send the XLIFF file to your preferred computer assisted software, online or running locally.

Step 3

Reflow Translated Text Back into the PDF

1// Perform the translation using the pre-prepared translated xliff
2 TransPDF::ApplyXLIFF(doc, input_path + "translated_output_(en_to_fr).xlf", options);
3
4 // Save the translated PDF
5 doc.Save(output_path + "document-fr.pdf", SDFDoc::e_linearized);

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales