Is there a way so the FRDocument created by the FREngine would retain it's original formatting, atm it takes out text from the image into a string looking like this:
"SomeWords\r\nSomeWords\r\nNewLine\r\nSomeWords\r\nNewLine\r\n" and it goes all the way to the end of the document, I want it to format it exactly as it is on the image, is there any way to do it?
Comments
1 comment
Hi,
There is a way to export document with same layout, but the implementation depends on the format you are exporting to.
In general when you call FRDocument::Export, you can pass FileExportFormatEnum value to determine type of output and the Params object, corresponding to the type you export into. For example this is how it going to look for txt export:
RetainLayout parameter in txt export means that the text will be structured in output the same way, as it was on the image.
You can find description of export options for all available formats in Help → API Reference → Parameter Objects → Export Parameters.
In case this doesn’t solve the issue, please share a sample image and describe your scenario. You can contact us by emailing to SDK_Support@abbyy.com, if it is more convenient for you.
Please sign in to leave a comment.