You need to sign in to do that
Don't have an account?
VisualForce
PDF CSS problem
I have store the following code as priintcss in static resource, and I have already stored logo in static resource named logo.
Code:
@page { @top-right { content: "Page " counter(page); } @top-left{ background-image: url('logo'); } } I am using following code in VF page.. <apexage controller="HistoryCon" showHeader="false" renderAs="pdf"> <apex:stylesheet value="{!$Resource.printcss}"/>
I want to render a PDF file.. I can get a page number in each page but I couldnt get a image...
Where I made a mistake... Give me a solution..
And one more..
How to insert a newline char in content in css .. that is I need
Testnewline
Test
I am using
Code:
@page { @top-right { content: "Testnewline \00000a test"; } and @page { @top-right { content: "Testnewline \a test"; }
I am not get correct output...
Anyone workaround this post ur sample code here...