microlink logo
  • Products
  • Developers
  • Pricing
  • Company
  • Changelog
  • Community
  • docs
  • Recipes
Getting Started
Overview
Data fields
CLI
API Basics
Authentication
Cache
Compression
Endpoint
Error codes
Format
Rate limit
API Parameters
adblock
animations
audio
click
colorScheme
data
device
embed
filename
filter
force
function
headers
iframe
insights
lighthouse
technologies
javascript
mediaType
meta
modules
palette
pdf
format
height
landscape
margin
pageRanges
scale
width
ping
prerender
proxy
countryCode
retry
screenshot
codeScheme
element
fullPage
overlay
omitBackground
type
scripts
scroll
styles
staleTtl
timeout
ttl
url
video
viewport
waitForSelector
waitForTimeout
waitUntil

width

Type: <string>
It sets the paper width for the pdf over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
const mql = require('@microlink/mql')

const { status, data } = await mql('https://www.raycast.com/', { pdf: {width: '640px'} })

mql.render(data)
The value accepts values labeled with units.
Last Edited on June 27, 2023
Edit on GitHub