function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VisualForceVisualForce 

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...