Extracting vertical text on PDF input

Hi

I have a PDF that has some vertical text I need to extract in a data mapper. how can I change the reading direction so it reads is correctly as it’s currently coming out in reverse order

James

There’s no way to set the reading direction (after all, the perspective depends on whether you turn the page on its left side or on its right side…).

But you can easily reverse the extracted text by using this post function in your field definition:

split("").reverse().join("")

Hi

That doesn’t work when it’s more than 1 line though… So I’d have to write something to firstly read in the PDF and rotate pages where needed, and then read them back in.

However this then causes me the issue around the watermark going over the text which I’ve just been commenting on…