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.