writeFile Function
open external override fun writeFile(image: File, orientation: ScanOrientation, text: ScanText, textOrientation: ScanOrientation)
Copies an already-encoded image straight into the PDF, without decoding it.
Parameters
- image — the encoded image file
- orientation — how to place it on the page
- text — recognised text to embed as an invisible searchable layer. A ScanText that holds no recognition result adds no layer, and the page is written as an image alone.
- textOrientation — the orientation the text coordinates are expressed at.
Throws
- ScanningSdkException — if the writer has been closed, or if writing fails