You need to sign in to do that
Don't have an account?
AAlex11
Problem rendering pdf in visualforce page
Hi,
I'm developing a visualforce page with two columns layout.
The VFpage works fine but when I try to render my page as pdf CSS style is ignored.
this is my code:
Why is ignored CSS style?
Anyone could help me?
Thanks
I'm developing a visualforce page with two columns layout.
The VFpage works fine but when I try to render my page as pdf CSS style is ignored.
this is my code:
<apex:page > <center> <b> My title </b> </center> <br> </br> <head> <style type="text/css"> .newspaper { -webkit-column-count: 2; -moz-column-count: 2; column-count: 2; -webkit-column-gap: 40px; -moz-column-gap: 40px; column-gap: 40px; } </style> </head> <span> <div class="newspaper"> My content </div> </apex:page>
Why is ignored CSS style?
Anyone could help me?
Thanks
You'll also want to look at the applyHeadTag and applyBodyTag attributes for apex:page so that you don't have to <head> tags in your output.
[1] http://blog.deadlypenguin.com/blog/2016/04/04/pdf-headers-footers-visualforce/
[2] http://blog.deadlypenguin.com/blog/2016/04/18/pdf-attachment-visualforce/
[3] http://blog.deadlypenguin.com/blog/2016/04/25/field-sets-dynamic-visualforce/
[4] http://blog.deadlypenguin.com/blog/2016/05/09/watermarking-pdfs-visualforce/
Any other suggestion?