Use Visualforce PDF Rendering Service with Apex Blob.toPdf() (Release Update)

With this update enabled, the Apex Blob.toPdf() method for PDF rendering uses the same rendering service as Visualforce. The Visualforce PDF rendering service offers improvements such as additional fonts and multibyte character support. This change makes PDF rendering more consistent on the Salesforce Platform.

Where: This feature is available in Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.

When: Salesforce enforces this update in Summer ’26. To get the major release upgrade date for your instance, go to Trust Status, search for your instance, and click the Maintenance tab.

How: To review this update, from Setup, in the Quick Find box, enter Release Updates, and then select Release Updates. For Use Visualforce PDF Rendering Service with Apex Blob.toPdf(), follow the testing and activation steps.

With this update enabled, calls to Blob.toPdf() automatically use the Visualforce PDF rendering service. Blob.toPdf() still accepts any string as an argument, and still returns a Blob result. Other than using a different PDF rendering engine, the shape of Blob.toPdf() is unchanged.

Important
Important The Visualforce PDF rendering service offers an expanded range of fonts, and the default font is changed from sans-serif to serif. If your PDF string doesn’t include explicit font styling, this change might result in different line lengths, and different line and page breaks for PDFs rendered compared to the old service. See Fonts Available When Using Visualforce PDF Rendering for additional details.

For more details on the features and limitations of the Visualforce PDF rendering service, see Render a Visualforce Page as a PDF File in the Visualforce Developer Guide.