Tuesday, August 2, 2011

Add Image to PDF Export

To add an image to your PDF export in the title page, header or footer:
  1. Access the appropriate space.
  2. Attach the image to a page in the space.
  3. Click the image's name link.

















  4. The image opens in a new window.
  5. Copy the image's URL starting with /download/.

    For example:
    /download/attachments/107675675/PDFLayout.png

  6. Access the space's PDF Layout page by going to Browse > Space Admin > PDF Layout.
  7. Press the Edit button. 
  8. In the title, header or footer section, enter code similar to: 

  9. <img src="/download/attachments/107675675/PDFLayout.png"/>

  10. To center the image and set a top margin and page break, use:

  11. <div style="text-align:center; margin-top:35mm; page-break-after:always;"><img src="/download/attachments/107675675/PDFLayout.png"/></div>























  12. Press the Save button.
________________________________________________________________

See the Editing the PDF Stylesheet page for more information.

No comments:

Post a Comment