When javascript creates a text report pdf, and columns of text are separated with tabs, the reading order of the created pdf prevents selecting the text in a logical way.
For example, the following script makes two columns, the left with the keys, the right with the values.
Code: Select all
// test of reading order for Report
{
const object1 = {
a: "some string",
b: 42,
c: false,
};
const rep = new Report();
for (let k in object1) {
rep.writeText( k + '\t' + object1[k]);
}
rep.open();
}
PXCE formats the columns nicely, but: Attempting to select the text in the resulting report is bizarre:
image.png
If I copy all the text and paste it, it is all jumbled:
The expected result would be that it is selected in the same way it appears:
There is a workaround (use Accessibility > Reading Order to manually select each row) but PXCE is getting the text from js in the correct order, so IMO it should store the correct reading order during document creation.
You do not have the required permissions to view the files attached to this post.