WebViewer Version: 11.5.0
Do you have an issue with a specific file(s)?
All Files
Can you reproduce using one of our samples or online demos?
No
Are you using the WebViewer server?
No
Does the issue only happen on certain browsers?
No
Is your issue related to a front-end framework?
No
Is your issue related to annotations?
No
Please give a brief summary of your issue:
(Think of this as an email subject)
I am trying to create a text element with a string containing a sequence of spaces. The text is written with only one space. For example when writing the text Hello World! it is written in the PDF page as Hello World!
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
I am using the following code:
const newFont = await PDFNet.Font.createTrueTypeFontWithBuffer(
pdfdoc,
pdfFontsRef.current[fontName],
true,
false
);
const builder = await PDFNet.ElementBuilder.create();
const textContent = "Hello World!";
const textElement = await builder.createTextRun(textContent, newFont, fontSize);
await writer.writeElement(textElement);
Please provide a link to a minimal sample where the issue is reproducible:
N/A