I have a single page and would like to split the page into multiple pages. I need to split wherever there is a horizontal line and a specific word in the page. How do I acheieve it using the SDK script in the workflow please?
Thanks
Priya
I have a single page and would like to split the page into multiple pages. I need to split wherever there is a horizontal line and a specific word in the page. How do I acheieve it using the SDK script in the workflow please?
Thanks
Priya
The Laserfiche SDK will give you the tools you need to iterate through the pages in a document, retrieve their image data and decode them into bitmaps, to create new images from rectangular regions in the source image, and to import these new images as pages in a document. However, Laserfiche does not ship with code to identify horizontal lines on a page and to determine their coordinates. You would need to supply code to do that. If you know how to write code to identify the presence of horizontal lines on a bitmap, or can find an image processing library which can do this, then we can outline which Laserfiche classes and methods to call to perform the other tasks. However, I wanted to clarify first that you know how to identify these lines in an image using code since it's key to solving your problem.
Thanks Michael. Even if I can identify the word 'TEST' in the page, that will work. It need not be a horizontal line. Do you have any sample code for this please?
I don't have sample code, as a fair amount of code would be required to do this. I can point you to the API functions you should be calling though, and in what order.
Thank you so much. We will try this.
Priya