Hi, I am using Radaee licensed version to render the PDF for my android app and I have a requirement to merge/concat two PDFs. And the second PDF before concatenating, my app need to draw dynamic header title. So, I am able to add it while concatinating but for some PDFs the header title get overrided with the actual PDF content. This was because I hardcoded the y-position of my header title. How can I get the y-position of the PDF content to calculate the y-position for my header title? OR can I get the complete page as transform to draw again after my header title drawn like the method did in iOS using CGPDFPageGetDrawingTransform?
We're evaluating the best approach you shall apply.
Actually you shall:
- put rasterized page as image in an empty page containing your header
- scan the to-be-merged page across chars' indexes and find higher and lower Y value, after that decide where to put your header or footer
Best way shall be:
- alter the PDF dictionary and modify page dimension and offset.
It would need the use of Advanced API to get/set values from dictionary.
We're evaluating how to provide the "set" feature right now.