CIB pdf toolbox 2 technical documentation
4. Usecases
4.20. Importing Text
Note: you need modifying rights to import text into a PDF.
Property |
Meaning |
Type |
HocrInputData |
Hocr data to be merged into the PDF. This can be provided by direct data in XML form or by a filename (where the pageIndex inside the HOCR-file need to match the pages of the PDF document) or a list of ;-separated page descritions and HOCR files. E.g. “{3};file1.hocr;{4};file2.hocr” |
Set |
FormatSearchablePdfShowText |
A flag indicating, that the text should be imported non-invisible. Default is invisible. |
Set |
FormatSearchablePdfCreateLayer |
Instead of FormatSearchablePdfShowText also FormatSearchablePdfCreateLayer can be applied. Then PDF Layers are generated, where you can switch on or off the imported text. |
Set |
FormatSearchablePdfLayerOpacity |
The Opacity of the layer. A number value between 0 (transparent) and 100 (complete opaque). Default is 50. |
Set |
FormatSearchablePdfLayerTitle |
The layer title, which should be shown in the user interface. Default: “Visualize text” |
Set |
HocrStartIndex |
A number, which indicates, to which offset the first HOCR page refers. Default is 0. |
Set |
TextMark |
A string under which the imported string is marked. Default: CIB_HOCR |
Set |