GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docspring-ruby/docs/HtmlEngineOptions.md at main · DocSpring/docspring-ruby

Expand file tree

/

HtmlEngineOptions.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
36 lines (30 loc) · 1.46 KB
/

HtmlEngineOptions.md

Copy path

File metadata and controls

36 lines (30 loc) · 1.46 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

DocSpring::HtmlEngineOptions

Properties

Name Type Description Notes
format PageFormat The paper size. Custom uses width and height.
width String The page width for the Custom format, with a unit (8.5in, 210mm), from 0.05in to 200in. [optional]
height String The page height for the Custom format, with a unit, from 0.05in to 200in. [optional]
scale Float How much to scale the page, from 0.1 to 2, such as 0.8. 1 prints it at its normal size.
landscape Boolean Print pages in landscape orientation.
print_background Boolean Print background colors and images.
margin_top String The top margin, with a unit, such as 1in or 20mm. The top and bottom margins together must be less than the page's height.
margin_bottom String The bottom margin, with a unit.
margin_left String The left margin, with a unit. The left and right margins together must be less than the page's width.
margin_right String The right margin, with a unit.

Example

require 'docspring'

instance = DocSpring::HtmlEngineOptions.new(
  format: null,
  width: null,
  height: null,
  scale: null,
  landscape: null,
  print_background: null,
  margin_top: null,
  margin_bottom: null,
  margin_left: null,
  margin_right: null
)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.