How to add an A4 page?

22 views
Skip to first unread message

Yusuke SAKATA

unread,
Feb 26, 2013, 10:20:55 PM2/26/13
to origa...@googlegroups.com
Hi, everybody.
I want to append A4 page to an existing pdf file.
I tried as follows.

  pdf = PDF.read("sample.pdf")
  if (pdf.pages.count % 2) ==1
    puts ("It has odd pages.  Appending new page.")
    pdf.append_page
  end

This script add a new page if the number of pages is odd.
Problem is the added page is larger than A4.
Is there anyway to add a blank A4 page?

I wish if it had a pdf join command. 

Guillaume Delugré

unread,
Mar 20, 2013, 8:10:07 AM3/20/13
to origa...@googlegroups.com
Hello Yusuke,

I fixed this bug in the latest revision of the repository.
By the way, what do you call a PDF "join" command?

Guillaume
Reply all
Reply to author
Forward
0 new messages