Posso convertire bene le pagine HTML in documenti PDF. Il problema è che non so come convertire il file HTML in un PDF con orientamento orizzontale. C'è un modo per impostarlo nel controller?Rails 3 e PDFKit, come posso convertire un file HTML in un PDF con orientamento orizzontale?
Dal controller ...
def pdf_customer_shipments
@customer = Customer.find(params[:id])
@shipments = Shipment.where("customer_id = ? AND status = 'Open'", @customer.id)
render :layout => 'pdf'
end
provato, mostrando ancora come ritratto – leonel