-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Header and footer options on Windows platform #44
Comments
The header line looks good to me, is shared/voucher_header.html.erb right? or is it shared/_voucher_header.html.erb? Not sure about your issue with images, does windows not work with file:// descriptors? |
Thank you very much. |
When I paste the url generated in browser this show the image correctly. However in image tag don´t show the image. |
Are you using wicked_pdf_image_tag or just image_tag? You can try defining a new helper as mentioned here:
I guess I should really try and get a windows computer together to test this stuff better on that platform |
Thanks. I am using pdf_image_tag on windows. My problem now is how could i generate multipages pdf with a standard header and footer (I need repeat these). |
You have a lot of flexibility in specifying your headers and footers.
|
I have the next problem.
I am working with RoR 2.3.8 on Windows platform. Also the server run on windows.
I am trying to create a pdf from html template, layout and partials.
briefly i will try to explain what i am trying to do:
My site is a shopping site, so I need generate a voucher.pdf
This voucher could have many items.therefore the voucher could have many pages.
I need to create a header and footer for each page in the voucher. There's mention that without these options (header and / or footer) works perfectly
I try this in my controller
def generate_voucher
@order = Order.find(params[:id])
end
This message throw:
'Template is missing
Missing template shared/voucher_header.html.erb in view path app/views'
I need to use a header and footer on every pages of the pdf file and not display it.
Also when i render a image with wicked_pdf_image_tag diaplay a empty frame with grey border.
Thanks in advance and excuse me.
The text was updated successfully, but these errors were encountered: