Uses of Class
net.serenitybdd.screenplay.playwright.interactions.GeneratePDF
Packages that use GeneratePDF
-
Uses of GeneratePDF in net.serenitybdd.screenplay.playwright.interactions
Methods in net.serenitybdd.screenplay.playwright.interactions that return GeneratePDFModifier and TypeMethodDescriptionstatic GeneratePDFGenerate PDF and save with the specified filename in the default output directory.static GeneratePDFGenerate PDF and save to the specified path.static GeneratePDFGenerate PDF and save to the specified path.GeneratePDF.inLandscape()Generate PDF in landscape orientation.GeneratePDF.inPortrait()Generate PDF in portrait orientation (default).GeneratePDF.withBackground()Include background graphics in the PDF.GeneratePDF.withDimensions(String width, String height) Set custom paper dimensions.GeneratePDF.withFooterTemplate(String template) Set the footer template.GeneratePDF.withFormat(String format) Set the paper format (e.g., "Letter", "A4", "A3", "Legal", "Tabloid").GeneratePDF.withHeaderTemplate(String template) Set the header template.GeneratePDF.withMargin(String margin) Set all margins to the same value.GeneratePDF.withMargins(String top, String right, String bottom, String left) Set individual margins.GeneratePDF.withPageRanges(String ranges) Set page ranges to print (e.g., "1-5, 8, 11-13").GeneratePDF.withScale(double scale) Set the scale of the webpage rendering.