sandal/prawn — Issue #308: When compress flag is true the document don't embed the template
Author: hilios
Created: 2011-12-19 18:14:02+00:00
State: open

This issue is happening with prawn 1.0.0.rc1

To reproduce just start a new Prawn::Document with template and compress flag setted. When you render the pdf only the text or shapes that you create in prawn are showed.

The same issue occours when you start_new_page with a template.

To reproduce just do the following:

def to_pdf
# Build the pdf
pdf = Prawn::Document.new :template => 'doc_template.pdf', :compress => true do
text "Only me here on the first page"
start_new_page(:template => 'page_template.pdf')
text "Again no page template"
end
pdf.render
end