I am trying to view this visualforce as a PDF when it simply shows the page titled and remains blank. The page displays fine when viewed in the browser but I have now created a second Custom Button to open up a 2nd Visualforce page that simply lets the user Save a copy of the PDF to related record.
The error simply looks like this; the "pdftest" is the name of the page:
It only contains a few lines of text:
<apex:page renderAs="pdf" >
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page: pdftest
<!-- End Default Content REMOVE THIS -->
</apex:page>
I am using Jeff Douglas's sample code here but with getContentAsPDF().