
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
A simple extension to generate and/or render QRCodes for Prawn PDFs
Prawn/QRCode is a Prawn (>= 1.0.0) extension to simplify rendering of QR Codes*.
(*) QR Code is registered trademark of DENSO WAVE INCORPORATED. See http://www.denso-wave.com/qrcode/ for more information.
gem install prawn-qrcode
require 'prawn/qrcode'
qrcode_content = "http://github.com/jabbrwcky/prawn-qrcode"
qrcode = RQRCode::QRCode.new(qrcode_content, level: :h, size: 5)
# Render a prepared QRCode at he cursor position
# using a default module (e.g. dot) size of 1pt or 1/72 in
Prawn::Document::new do
render_qr_code(qrcode)
render_file("qr1.pdf")
end
# Render a code for raw content and a given total code size.
# Renders a QR Code at the cursor position measuring 1 in in width/height.
Prawn::Document::new do
print_qr_code(qrcode_content, extent: 72)
render_file("qr2.pdf")
end
# Render a code for raw content with a given dot size
Prawn::Document::new do
# Renders a QR Code at he cursor position using a dot (module) size of 2.8/72 in (roughly 1 mm).
render_qr_code(qrcode, dot: 2.8)
render_file("qr3.pdf")
end
For a full list of examples, take a look in the examples
folder.
FAQs
Unknown package
We found that prawn-qrcode 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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.