Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Concat two PDFs with header title in 1st page of 2nd PDF by considering the text 6 years 2 months ago #13396

  • srinivas_g
  • srinivas_g's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Concat two PDFs with header title in 1st page of 2nd PDF by considering the text 6 years 2 months ago #13408

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 690
  • Thank you received: 59
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.

Please Log in or Create an account to join the conversation.

Concat two PDFs with header title in 1st page of 2nd PDF by considering the text 6 years 2 months ago #13412

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

here you can find the Knowledge Base Article that shows how to use Advanced APIs to change the page dimension:
Android: www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=124
iOS: www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=125

Please Log in or Create an account to join the conversation.

Concat two PDFs with header title in 1st page of 2nd PDF by considering the text 6 years 2 months ago #13416

  • srinivas_g
  • srinivas_g's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Thanks for sharing the details

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum