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 and save the fielded PDF

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);
6
7// Save the fielded PDF
8doc.Save(output_path + "document-fielded.pdf", SDFDoc::e_linearized);

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 fielded PDF

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

For more extensive code samples please go to the Document Translation Reflow samples page.

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales