
답변 2개
Nick You will need to use a combination of Visualforce and Apex to manage this. Visualforce pages can be rendered as a PDF using the apex:page attribute
This will render the Visualforce page as a PDF which you can then save. This can be simulated in Apex using the getContentAsPDF() method on a PageReference object (which references a particular page). This will return for you a Blob that you can save as a File or Attachment within your org. Apex can also send emails using the Messaging class which you could then use to attach your file to and email out.<apex:page renderAs="PDF">