GithubHelp home page GithubHelp logo

doytsujin / pdf-qrcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oetiker/pdf-qrcode

0.0 2.0 0.0 14 KB

Package to add a qrcode method to the PDF::API2 and PDF::Builder classes.

License: Artistic License 2.0

Shell 2.64% Perl 97.36%

pdf-qrcode's Introduction

NAME

PDF::QRCode - add qrcode method to a PDF::API2 or PDF::Builder.

SYNOPSIS

use PDF::API2; # or PDF::Builder
use PDF::QRCode;

my $pdf = PDF::API2->new(-file=>'qr.pdf');
$pdf->mediabox('a4');
my $gfx = $pdf->page->gfx;
$gfx->qrcode(x => 100, y => 100, 
   level => 'L', size => 40, text => 'Hello World');
$pdf->save;

DESCRIPTION

The PDF::QRCode module monkey patches the 'qrcode' method into the PDF::API2::Content or PDF::Builder::Content class, so that you can use it directly from there. See the example above

$gfx->qrcode(%cfg)

Adds a qr code to the given gfx content. It expects the following parameters:

  • x

    horizontal position

  • y

    vertical position

  • size

    width/height

  • text

    the content of the qrcode

  • level (optional)

    qr code level L, M, Q, H

AUTHOR

Tobias Oetiker, [email protected]

COPYRIGHT

Copyright OETIKER+PARTNER AG 2020

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10 or, at your option, any later version of Perl 5 you may have available.

pdf-qrcode's People

Contributors

oetiker avatar zmughal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.