Uses of Class
com.microsoft.playwright.Page.PdfOptions
Packages that use Page.PdfOptions
-
Uses of Page.PdfOptions in com.microsoft.playwright
Methods in com.microsoft.playwright that return Page.PdfOptionsModifier and TypeMethodDescriptionPage.PdfOptions.setDisplayHeaderFooter(boolean displayHeaderFooter) Display header and footer.Page.PdfOptions.setFooterTemplate(String footerTemplate) HTML template for the print footer.Paper format.Page.PdfOptions.setHeaderTemplate(String headerTemplate) HTML template for the print header.Paper height, accepts values labeled with units.Page.PdfOptions.setLandscape(boolean landscape) Paper orientation.Paper margins, defaults to none.Page.PdfOptions.setPageRanges(String pageRanges) Paper ranges to print, e.g., '1-5, 8, 11-13'.The file path to save the PDF to.Page.PdfOptions.setPreferCSSPageSize(boolean preferCSSPageSize) Give any CSS@pagesize declared in the page priority over what is declared inwidthandheightorformatoptions.Page.PdfOptions.setPrintBackground(boolean printBackground) Print background graphics.Page.PdfOptions.setScale(double scale) Scale of the webpage rendering.Paper width, accepts values labeled with units.Methods in com.microsoft.playwright with parameters of type Page.PdfOptionsModifier and TypeMethodDescriptionbyte[]Page.pdf(Page.PdfOptions options) Returns the PDF buffer. -
Uses of Page.PdfOptions in com.microsoft.playwright.impl
Methods in com.microsoft.playwright.impl with parameters of type Page.PdfOptionsModifier and TypeMethodDescriptionbyte[]PageImpl.pdf(Page.PdfOptions options) private byte[]PageImpl.pdfImpl(Page.PdfOptions options)