Skip to main content
Participant
November 13, 2025
Question

QR Code cannot include the control characters

  • November 13, 2025
  • 1 reply
  • 134 views

I am trying to use control characters (\t, \r, \n) as delimiters in the QR code. However, the PDF generation process converts them into spaces. How can I prevent this?

 

Issue: The QR code is not interpreting control characters correctly.

  • Input: "line1 \r line2 \r line3"

  • Expected Output: A QR code that decodes to three separate lines.

  • Actual Output: "line1 line2 line3" (The \r characters are lost).

 

1 reply

PDF Automation Station
Community Expert
Community Expert
November 13, 2025

How are you doing the input?  I used the following custom calculation script and it worked for me:

event.value="line1 \r line2 \r line3";

 

ian_8519Author
Participant
November 13, 2025

Upon using the barcode scanner, the output is formatted as a single string containing the values "line1 line2 line3". The qrcode.js library produces a QR code that encodes data as three distinct lines.

PDF Automation Station
Community Expert
Community Expert
November 13, 2025

I used this free online barcode reader to read the QR code:

https://online-barcode-reader.inliteresearch.com/