Method: CombinePDF.create_page

Defined in:
lib/combine_pdf/api.rb

.create_page(mediabox = [0, 0, 612.0, 792.0]) ⇒ Object

makes a PDFWriter object

PDFWriter objects reresent an empty page and have the method “textbox” that adds content to that page.

PDFWriter objects are used internally for numbering pages (by creating a PDF page with the page number and “stamping” it over the existing page).

::mediabox an Array representing the size of the PDF document. defaults to: [0.0, 0.0, 612.0, 792.0] (US Letter)

if the page is PDFWriter object as a stamp, the final size will be that of the original page.



54
55
56
# File 'lib/combine_pdf/api.rb', line 54

def create_page(mediabox = [0, 0, 612.0, 792.0])
  PDFWriter.new mediabox
end