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

TOPIC:

Merge two PDF into one new single page PDF 8 years 6 months ago #9826

  • emilof
  • emilof's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
I've now tested concat_pdf using my own PDFs and it works.

It doesn't work if I try to import pages into a new PDF.

When replacing
doc_dst.Open(dst, null);
with
doc_dst.Create(dst);
it stops working.

What I want to do is:
1. Create new PDF with a page twice as wide as source PDF #1.
2. Import first page from source PDF #1 at location 0,0 (left side).
3. Import first page from source PDF #2 at location pdf1Width,0 (right side).
4. Save new PDF.

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

Last edit: by emilof.

Merge two PDF into one new single page PDF 8 years 6 months ago #9828

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
have you tried to open the new document after creating it?
doc_dst.Create(dst);
doc_dst.Open(dst, null);

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

Merge two PDF into one new single page PDF 8 years 6 months ago #9829

  • emilof
  • emilof's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Great! That was the missing piece!

How do I import the content from page 1 in src PDF to a specific coordinate on page 1 in dst PDF?

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

Merge two PDF into one new single page PDF 8 years 6 months ago #9835

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
sorry but at the moment there are no direct API to achieve this.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum