public Blob getContentAsPDF()
Type: Blob
If you use getContentAsPDF in a test method, the test method fails. getContentAsPDF is treated as a callout in API version 34.0 and later.