Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - A4 to A3
  FAQ FAQ  Forum Search   Register Register  Login Login

A4 to A3

 Post Reply Post Reply
Author
Message
Nelson Castro View Drop Down
Beginner
Beginner
Avatar

Joined: 25 Apr 13
Location: Brasil
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nelson Castro Quote  Post ReplyReply Direct Link To This Post Topic: A4 to A3
    Posted: 13 Jun 13 at 1:37PM
Hi! Please, how can I convert two pages A4 to a single page A3?  Thanks for any help!
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 14 Jun 13 at 3:08AM

Nelson,

Here is some very simple code without error checking that will do what you need.  It assumes there are 2 A4 pages in your input file.

  QP.LoadFromFile("2pages.pdf");

  int capID = QP.CapturePage(2);

  QP.SetPageSize("A3");
  QP.SelectPage(1);
  QP.SetOrigin(1);
  QP.DrawCapturedPage(capID, QP.PageWidth()/2, 0, QP.PageWidth() / 2, QP.PageHeight());
  QP.SaveToFile("out.pdf");

Andrew


Edited by AndrewC - 14 Jun 13 at 3:08AM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store