Loading

OmniStudio DocGen: Extra Spaces and Missing Hyphens When Copying Text from Generated PDF at Line-Wrap Positions

Publiseringsdato: Aug 10, 2026
Beskrivelse

When a user copies text that wraps across multiple lines within table cells from a generated PDF, the copied value may differ from the original value. Specifically:

  1. Extra spaces are inserted at each line-wrap position within table cells.

  2. Hyphens are dropped when they appear at the end of a wrapped line.

Example:

  • Original value: GCAFP-170-NVSNIO1WHTSAPPCNV

  • Copied from PDF: GCAFP-170- NVSNIO1WHT SAPPCNV

As a result, search and lookup operations against the PDF content may fail or return no results because the copied text does not match the original value. This behaviour is related to how PDF content is encoded and extracted during text selection/copy operations and is not specific to OmniStudio Document Generation.

Note: The same behavior can also be observed when the content is manually added in Microsoft Word and then converted to PDF using the application itself.

Løsning

This is a rendering-layer issue specific to PDF output. The generated Word (.docx) document renders and copies the same values correctly.

This is not an OmniStudio Document Generation product issue, as this behavior is due to how the PDF engine handles text encoding when content wraps or breaks across lines within table cells.

Either of the following workarounds can be applied:

  1. Keep the product code on a single line.

  2. Use the generated DOCX file.

Knowledge-artikkelnummer

005390886

 
Laster
Salesforce Help | Article