I have multi-page TIFF files. Each page is formatted the same with a header and six sections containing data. I want to split each page into its component pieces and recombine for data entry. All sections are above one another on a landscape form.
I am considering these approaches:
1) Separate each page into sections and write each section to new single-page TIFF files.
2) Separate each page into sections and combine the header and individual entry into new single-page TIFF files.
3) Separate each page into sections and display the appropriate sections to the data entry operator without creating new files.
Each page is 2500 wide and 3300 high at orientation 1.
Questions:
A) For solution 3, I would simply need to present the header and each individual entry to the data entry operator. I can easily access the individual pages using a TIETIFFHandler and load pages into a memory stream to display using a TImageEnView. I can calculate where the header and individual entry sections are on the page.
How can I split the page into separate images for displaying the header and a particular entry?
B) For solutions 1 and 2:
How can I separate the header and individual entries?
How can I recombine and create new single page tiff files?
If you create a new TIEBitmap of an appropriate size, you can easily copy content to it from another image (and then write it to file). Please see the example at:
In terms of accessing each page of your TIFF file, you would either use a TIEBitmap, setting the appopriate ImageIndex before reading the TIFF file, or use a TIEMultiBitmap and load the while TIFF file and access individual pages in memory.