Concat two PDFs with header title in 1st page of 2nd PDF by considering the text - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
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

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

  • srinivas_g
  • srinivas_g's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 9 months 2 weeks ago #13408

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
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 9 months 2 weeks ago #13412

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
Hi,

here you can find the Knowledge Base Article that shows how to use Advanced APIs to change the page dimension:
Android: http://www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=124
iOS: http://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 9 months 1 week ago #13416

  • srinivas_g
  • srinivas_g's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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