wicked_pdf icon indicating copy to clipboard operation
wicked_pdf copied to clipboard

Content is getting cropped in PDF

Open prachi-aspire opened this issue 1 year ago • 0 comments

Screenshot from 2024-02-01 13-03-09

Issue description

while generating pdf my content is not breaking down for a page. It's getting cropped.

def general_ledger_pdf @categories = Category.journal_categories(params[:accounting_business_id], @daterange) render pdf: "#{file_name('General ledger')}", template: "accounting/general_ledger_pdf.html.erb", orientation: 'Landscape', margin: { bottom: 25, top: 20 }, :footer => { :html => { :template => "accounting/accounting_footer.html.erb"}} end

this is my method who's calling pdf view page

<meta charset="utf-8" />

prachi-aspire avatar Feb 01 '24 07:02 prachi-aspire