I need to perform an export of a subset of user created areas to a pdf file keeping their original appearance as much as possible. I've used the FineReader engine VisualComponents example as starting point as it can be used to export to rtf a document which is fully processed by the engine.
I managed to export the full document as pdf but I could always export only the whole file as it was synthesized or part of it removing auto recognized blocks manually. However I need to manually add blocks from scratch, and export a pdf file with only specified blocks.
I set up a simple function which goes from document creation and programmatically add a text block to all pages of a document and went thorugh recognition of blocks but if I try to export the document to a pdf file I get the error "The logical structure of the document is invalid. Please, perform document synthesis". But if I perform a sysnthesis of the document my custom blocks are removed and the full document is exported.
How can I export only the blocks I need?
asked 16 Feb, 13:56
I suppose that you export the result to searchable PDF (TextExportMode=PEM_ImageOnText by default), when the whole image without text is saved as a picture and the recognized text is saved as text and is put under the image. The image covers all the recognized text and that's why you can't see what has been actually exported. Please try to use one of export modes: PEM_TextOnly or PEM_TextWithPictures. See also the Developer's Help → API Reference → PDFExportParams Object.
answered 2 days ago
Oksana Serdyuk ♦♦