Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. <apex:page controller="sampleController" action="{!getSendList}" showHeader="false" sidebar="false" renderAs="PDF" applyHtmlTag="false" standardStylesheets="false" readOnly="true">
  2.  
  3. <head>
  4. <!-- CUSTOM STYLES -->
  5. <style>
  6. * {
  7. font-family: "Salesforce Sans", Arial, sans-serif;
  8. margin: 0;
  9. line-height: 1.5;
  10. }
  11.  
  12. @page {
  13. @top-center {
  14. content: element(header);
  15. }
  16. @bottom-center {
  17. content: element(footer);
  18. }
  19. margin-top: 180px;
  20. margin-bottom: 165px;
  21. }
  22. .pagenumber:before {
  23. content: counter(page);
  24. }
  25. .pagecount:before {
  26. content: counter(pages);
  27. }
  28. .header span {
  29. font-size: 24px;
  30. }
  31. div.header {
  32. padding-top: 50px; position: running(header);
  33. }
  34. div.footer {
  35. display: block; padding-bottom: 200px; position: running(footer); font-size: small;
  36. }
  37. table.il {
  38. font-size: 70%; border-collapse: collapse;
  39. }
  40. .il th {
  41. border-left: 0px; border-right: 0px; border-bottom: 1px solid black; vertical-align: bottom; text-align: center;
  42. }
  43. .il td {
  44. text-align: center;
  45. }
  46. .il tbody {
  47. font-size: 82.5%;
  48. }
  49. table.tg {
  50. margin-left: auto; margin-right: auto; width: 85%; border-collapse: collapse;
  51. }
  52. .tg th {
  53. font-weight: bold;
  54. background-color: #f2f2f2;
  55. }
  56. .tg th, .tg td {
  57. font-size: 57.5%;
  58. }
  59. table.tg, .tg th, .tg td {
  60. border: 1px solid #cac9d9;
  61. }
  62. p.tg, .tg li {
  63. text-color: #333333; font-size: 73%;
  64. }
  65. </style>
  66. <!-- /CUSTOM STYLES -->
  67. </head>
  68. <h>test</h>
  69. <apex:repeat value="{!userList}" var="check">
  70.  
  71. {!check.checkNumber}
  72. </apex:repeat>
  73.  
  74. public PageReference getSendList() {
  75.  
  76. this.userList = new List<DME_WrapperCheck>();
  77.  
  78. for(DME_WrapperCheck wc : checkItemList) {
  79. userList.add(wc);
  80. }
  81.  
  82. System.debug('tempCheckItemList');
  83.  
  84. this.setup = new DME_Setup__c();
  85. this.setup = DME_SharedMethods.getDMESetup();
  86.  
  87. return null;
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement