Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <apex:page standardController="proposal__c" extensions="testGenerateQuotePdf" showHeader="false" renderAs="pdf" sidebar="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false">
  2. <html>
  3. <head>
  4. <style>
  5. @page {
  6. size: A4;
  7. margin-top: 20mm;
  8. @bottom-center {
  9. content: counter(page);
  10. }
  11. @top-right {
  12. content: counter({!$Resource.TestProposalHeader});
  13. }
  14. @bottom{
  15. margin-top: 10mm;
  16. }
  17. @left-top{
  18. content: "Quote";
  19. }
  20. }
  21. .contactDetails{
  22. }
  23. .page-break {
  24. display:block;
  25. page-break-after:always;
  26. }
  27. .outBorder {
  28. border-style: groove;
  29. }
  30. .inBorder{
  31. border-style: ridge;
  32. }
  33. .generatedDate{
  34. font: 8px;
  35. }
  36. body{
  37. font-size: 1em;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="generatedDate" style="float:right; position:relative;">
  43. <apex:outputText value="{0, date, MMMM d',' yyyy}" style="color:blue;">
  44. <apex:param value="{!NOW()}"/>
  45. </apex:outputText>
  46. </div><br></br>
  47. <apex:image id="theImage" value="{!$Resource.spotQuoteBody}" width="700" height="200"/>
  48. </body>
  49. </div>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement