- Posts: 9
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Merge two PDF into one new single page PDF
10 years 10 months ago - 10 years 10 months ago #9826
by emilof
Replied by emilof on topic Merge two PDF into one new single page PDF
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
with
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.
It doesn't work if I try to import pages into a new PDF.
When replacing
Code:
doc_dst.Open(dst, null);
Code:
doc_dst.Create(dst);
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.
Last edit: 10 years 10 months ago by emilof.
10 years 10 months ago #9828
by Davide
Replied by Davide on topic Merge two PDF into one new single page PDF
Hi,
have you tried to open the new document after creating it?
have you tried to open the new document after creating it?
Code:
doc_dst.Create(dst);
doc_dst.Open(dst, null);
10 years 10 months ago #9829
by emilof
Replied by emilof on topic Merge two PDF into one new single page PDF
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?
How do I import the content from page 1 in src PDF to a specific coordinate on page 1 in dst PDF?
Time to create page: 0.358 seconds