
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
pdf-write-page
Advanced tools
just write text in different color, font, and size to a existing pdf and save the result
just write text in different color, font, and size to a existing pdf and save the result
Example:
pdf = require 'pdf-write-page'
pdf {in:'test_unmodified.pdf', out:'test_modified.pdf', pageNumber:0}
.write 10, 0, 'A'
.write 10, 14, 'B'
.cfg {size:60}
.write 10, 28, 'C'
.restoreCfg()
.write 100, 100, 'D'
.end()
end also saves to out path.
page offset is bottom, left (x = 0, y = 0)
writes some text
.write(x, y, text)
add an image (jpg, pdf, tiff) to the pdf
copied from https://github.com/galkahana/HummusJS/wiki/Show-images
Optionally there's a 4th parameter which is an options object. The object may have the following properties, to modify the default image placement behaviour:
index - for multi-page image formats (tiff, PDF), index determines the page to show. Default is the first image in the collection.transformation - transformation method. Can be either a array or an object. If it is a array, then transformation will be a 6 numbers matrix, allowing you to scale, rotate, translate or whatnot. If it is an object, than it is meant for defining an image fitting behaviour. You will define bounding with/height, and the module will scale the image in accordance. the object may have the following attributes:
width - required, width of bounding boxheight - required, height of bounding boxproportional - boolean, should the fit method maintain the image proportions?fit - either always or overflow. If always Fit may always happen scaling up or down. If overflow fit will scale only if the image dimensions overflow the box.example:
.image()x, y, path, opts)
options:
fontPath : ''
size : 14
colorspace : 'gray'
color : 0x00
FAQs
just write text in different color, font, and size to a existing pdf and save the result
We found that pdf-write-page demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.