Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 828 Bytes

ConvertHTML2PDFRequest.md

File metadata and controls

26 lines (20 loc) · 828 Bytes

PDFGeneratorAPI::ConvertHTML2PDFRequest

Properties

Name Type Description Notes
content String HTML content [optional]
paper_size String PDF page size [optional][default to 'a4']
orientation String [optional][default to 'portrait']
output String Output [optional][default to 'base64']
filename String Document name [optional]

Example

require 'pdf_generator_api_client'

instance = PDFGeneratorAPI::ConvertHTML2PDFRequest.new(
  content: <html><title>Test</title><body><h1>Hello world</h1></body></html>,
  paper_size: a4,
  orientation: portrait,
  output: base64,
  filename: Invoice 12345
)