Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37837157
en ru br
ALT Linux repositórios
S:3.025-alt1

Group :: Desenvolvimento/Perl
RPM: perl-PDF-Builder

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%filter_from_requires /^perl.unicore.Lbrk.pl./d
%define module_name PDF-Builder

Name: perl-PDF-Builder
Version: 3.025
Release: alt1

Summary: Facilitates the creation and modification of PDF files

License: open_source
Group: Development/Perl
Url: https://www.catskilltech.com

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://mirror.yandex.ru/mirrors/cpan/authors/id/P/PM/PMPERRY/%module_name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-perl
BuildRequires: perl-devel perl-podlators
BuildRequires: perl(Compress/Zlib.pm) perl(Encode.pm) perl(English.pm) perl(Exporter.pm) perl(ExtUtils/MakeMaker.pm) perl(FileHandle.pm) perl(Font/TTF.pm) perl(Graphics/TIFF.pm) perl(IO/File.pm) perl(IPC/Cmd.pm) perl(Image/PNG/Const.pm) perl(Image/PNG/Libpng.pm) perl(List/Util.pm) perl(Math/Trig.pm) perl(Scalar/Util.pm) perl(Test/Exception.pm) perl(Test/Memory/Cycle.pm) perl(Test/Perl/Critic.pm) perl(Test/Pod.pm) perl(Unicode/UCD.pm) perl(base.pm)

%description
use PDF::Builder;

   # Create a blank PDF file
   $pdf = PDF::Builder->new();

   # Open an existing PDF file
   $pdf = PDF::Builder->open('some.pdf');

   # Add a blank page
   $page = $pdf->page();

   # Retrieve an existing page
   $page = $pdf->openpage($page_number);

   # Set the page size
   $page->mediabox('Letter');

   # Add a built-in font to the PDF
   $font = $pdf->corefont('Helvetica-Bold');

   # Add an external TTF font to the PDF
   $font = $pdf->ttfont('/path/to/font.ttf');

   # Add some text to the page
   $text = $page->text();
   $text->font($font, 20);
   $text->translate(200, 700);
   $text->text('Hello World!');

   # Save the PDF
   $pdf->saveas('/path/to/new.pdf');

%package examples
Summary: %module_name examples
Group: Development/Perl
Requires: %name = %EVR

BuildArch: noarch

%description examples
Examples for %module_name.


%prep
%setup -n %module_name-%version

%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%doc Changes docs README.md examples CONTRIBUTING.md
%perl_vendor_privlib/P*

%files examples
%doc examples

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009