Re: writing a value from a variable in PDF::API2

2012-08-27 Thread Shlomi Fish
On Mon, 27 Aug 2012 08:11:12 -0400 Shawn H Corey wrote: > On Mon, 27 Aug 2012 17:18:10 +0700 > Eko Budiharto wrote: > > > my $endDate2 = $time{'dd-mm-', time + 86400 * 14}; > > my $startDate2 = $time{'dd-mm-', time - 86400 * 0}; > > Where is the hash %time assigned its values? > > F

Re: writing a value from a variable in PDF::API2

2012-08-27 Thread Shawn H Corey
On Mon, 27 Aug 2012 17:18:10 +0700 Eko Budiharto wrote: > my $endDate2 = $time{'dd-mm-', time + 86400 * 14}; > my $startDate2 = $time{'dd-mm-', time - 86400 * 0}; Where is the hash %time assigned its values? -- Just my 0.0002 million dollars worth, Shawn Programming is as much

writing a value from a variable in PDF::API2

2012-08-27 Thread Eko Budiharto
dear members, I wrote a perl script to write a pdf file. I am stuck in writing a value from a variable. Please help. thanks in advance. Here is my script: #!/usr/local/bin/perl use CGI qw(:standard); use strict; use PDF::API2; my $endDate2 = $time{'dd-mm-', time + 86400

Re: encoding and PDF::API2

2011-10-07 Thread John Delacour
At 09:54 +0200 7/10/11, marcos rebelo wrote: Unfortunatly someone has the code: < use encoding 'utf8'; > and now I get: ### $VAR1 = { 'Subject' => "\x{fffd}\x{fffd}my subject", 'CreationDate' => 'D:20111006161347+02\'00\'

Re: encoding and PDF::API2

2011-10-07 Thread Brian Fraser
On Fri, Oct 7, 2011 at 5:39 AM, Igor Dovgiy wrote: > Hi Marcos, > my %pdf_info = $pdf->info(); > foreach (keys $pdf_info) { >$pdf_info{$_} =~ s/[^\x00-\xFF]//g; > } > Perhaps that'll do? ) > > Nope. That'll restrict the text to the latin-1 charset.

Re: encoding and PDF::API2

2011-10-07 Thread Brian Fraser
On Fri, Oct 7, 2011 at 12:19 PM, Brandon McCaig wrote: > > I know next to nothing about Unicode programming (in any > language), but it seems to always be the same prefix. Printing > this out in Windows' cmd shell seems to yield the same prefix > that I see in UTF-8 files with a BOM (byte-order m

Re: encoding and PDF::API2

2011-10-07 Thread Brian Fraser
On Fri, Oct 7, 2011 at 4:54 AM, marcos rebelo wrote: > Hi all > > I'm trying to get the info from a PDF with a code like: > > ### > > ... > use Data::Dumper; > use PDF::API2; > ... > my $pdf = PDF::AP

Re: encoding and PDF::API2

2011-10-07 Thread Brandon McCaig
On Fri, Oct 7, 2011 at 4:39 AM, Igor Dovgiy wrote: >> $VAR1 = { >>          'Subject' => "\x{fffd}\x{fffd}my subject", >>          'CreationDate' => 'D:20111006161347+02\'00\'', >>          'Producer' => "\x{fffd}\x{fffd}LibreOffice 3.3", >>          'Creator' => "\x{fffd}\x{fffd}Writer", >>      

Re: encoding and PDF::API2

2011-10-07 Thread Igor Dovgiy
a PDF with a code like: > > ### > > ... > use Data::Dumper; > use PDF::API2; > ... > my $pdf = PDF::API2->open('/home/.../PDF.pdf'); > print Dumper +{ $pdf->info() }; > > ### > > This code gets me somethin

encoding and PDF::API2

2011-10-07 Thread marcos rebelo
Hi all I'm trying to get the info from a PDF with a code like: ### ... use Data::Dumper; use PDF::API2; ... my $pdf = PDF::API2->open('/home/.../PDF.pdf'); print Du

Re: Problem with PDF::API2::Lite module

2009-10-22 Thread Dermot
2009/10/22 Dermot : > 2009/10/22 ANJAN PURKAYASTHA : >> Hi All, >> I wrote a short script to test the PDF::API2::Lite module. I work on a Mac >> OSX. >> Here is the script: >> #! /usr/bin/perl >> >> use strict; >> use warnings; >> use PDF::

Problem with PDF::API2::Lite module

2009-10-22 Thread ANJAN PURKAYASTHA
Hi All, I wrote a short script to test the PDF::API2::Lite module. I work on a Mac OSX. Here is the script: #! /usr/bin/perl use strict; use warnings; use PDF::API2::Lite; my $pdf= PDF::API2::Lite->new; my $img = $pdf->image_jpeg('/Users/anjan/Desktop/personal/me.jpeg'); $pdf-&

Re: PDF::API2

2008-12-14 Thread Dermot
2008/12/12 ChrisC : > Hi! Hi, > How to underline text using PDF::API2? > > Currently using following to print text: > > sub print_pdf_text { >my $xp = shift; >my $yp = shift; >my $fnt = shift; >my $Mfnt = shift; >my $text = shif

PDF::API2

2008-12-12 Thread ChrisC
Hi! How to underline text using PDF::API2? Currently using following to print text: sub print_pdf_text { my $xp = shift; my $yp = shift; my $fnt = shift; my $Mfnt = shift; my $text = shift; $txt->font( $fnt, $Mfnt); $txt->translate( $xp, $yp

Re: PDF::API2, error "Can't call method "val".... when adding a picture to the PDF

2008-07-15 Thread Dermot
gt;my $xp = shift; >my $yp = shift; >my $sp = shift; > >$photo->image( $pdf->image_jpeg( $picture ), $xp, $yp, $sp ); > } > > Thanks, > > Jerry I have had it before with PDF::API2, which I think is a great tool but as you have found

PDF::API2, error "Can't call method "val".... when adding a picture to the PDF

2008-07-14 Thread ChrisC
I am not sure what is going on. It works, then it does not? Is there a solution for this? I have been able to find little to NO doc on this. use strict; . . . sub picture { my $picture = shift; my $xp = shift; my $yp = shift; my $sp = shift; $photo->image

Fwd: First time using Perl & PDF::API2

2008-05-28 Thread Dermot
2008/5/28 Daniel Kasak <[EMAIL PROTECTED]>: > On Tue, 2008-05-27 at 07:10 -0700, ChrisC wrote: > >> Hi!, >> >> Not sure if using PDF::API2 is a good choice or not. Little to no >> doc. > > Yeah it's very powerful, and *very* poorly documented. W

Re: First time using Perl & PDF::API2

2008-05-27 Thread Daniel Kasak
On Tue, 2008-05-27 at 07:10 -0700, ChrisC wrote: > Hi!, > > Not sure if using PDF::API2 is a good choice or not. Little to no > doc. Yeah it's very powerful, and *very* poorly documented. What's worse, one of the best tutorials ( http://rick.measham.id.au/pdf-api2/ ) h

Re: PDF::API2 and content index

2006-08-29 Thread Beginner
On 28 Aug 2006 at 9:37, Daniel Kasak wrote: > Hi all. Olla > Does anyone know if it's possible to create a content index with > PDF::API2, so people viewing the PDF can click in the index and go > straight to the corresponding page of the PDF document? If your referring

PDF::API2 and content index

2006-08-27 Thread Daniel Kasak
Hi all. Does anyone know if it's possible to create a content index with PDF::API2, so people viewing the PDF can click in the index and go straight to the corresponding page of the PDF document? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney

Re: PDF::API2

2006-02-28 Thread Owen
The Ghost wrote: > What I meant by lacking was "insufficient". It tells me I create an > xo_form object, but I don't understand how to place it into the PDF. I > think I know what parameters to pass to it though: > > -type => 'a', -code => &#

Re: PDF::API2

2006-02-28 Thread The Ghost
(ps, google didn't turn up anything more than the CPAN docs) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: PDF::API2

2006-02-28 Thread The Ghost
Feb 28, 2006, at 1:33 AM, Owen Cook wrote: On Tue, 28 Feb 2006, The Ghost wrote: Does anyone know how to use the barcoding of PDF::API2? The documentation is lacking. Place 'PDF API2 documentation barcoding' into Google and it may give you some more clues. Owen -- To un

Re: PDF::API2

2006-02-27 Thread Owen Cook
On Tue, 28 Feb 2006, The Ghost wrote: > Does anyone know how to use the barcoding of PDF::API2? The > documentation is lacking. Place 'PDF API2 documentation barcoding' into Google and it may give you some more clues. Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED

PDF::API2

2006-02-27 Thread The Ghost
Does anyone know how to use the barcoding of PDF::API2? The documentation is lacking. Ryan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: PDF-API2

2005-06-21 Thread Rick Measham
G'day Dermot, Why bother with all the rotation stuff? Why not just make a landscape document? I believe the following script will suit your purposes (unless I've misunderstood them) For those interested in PDF::API2, but frustrated by the lack of documentation, I have a tuto

PDF::API2

2005-06-21 Thread Dermot Paikkos
Hi perlers, This is a rather specialised query about the module PDF::API2. I am trying to create PDFs on the fly. The first attempt worked fine and I was delighted with the results. Then I was asked to make something similar with landscape orientation. It started well but I have hit a problem

Re: PDF::API2 module example for edit pdf and save new pdf file

2005-06-01 Thread Wiggins d'Anconia
baskaran wrote: > Dear sirs, > > I want to learn more about open pdf file and edit and save some other new > pdf file. > I use PDF::API2 module, Kindly give me an example... > > Thanking you > > Regards > Baskaran NK > > > http://search.cpan.org/src

PDF::API2 module example for edit pdf and save new pdf file

2005-06-01 Thread baskaran
Dear sirs, I want to learn more about open pdf file and edit and save some other new pdf file. I use PDF::API2 module, Kindly give me an example... Thanking you Regards Baskaran NK -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

Help with pdf::API2

2005-05-13 Thread Ashraf brzy
Hi All i use pdf::API2-0.41 to creat pdf file it work fine with English text but i need to writ an Arabic Text when i put an arabic string in pdf file it display like this (ÈÓã Çááå) i need help thanks Ashraf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: PDF::API2

2005-04-20 Thread Daniel Kasak
Peter Rabbitson wrote: >Hi everyone, >Today I am stuck with PDF::API2. Although seeming very powerful, the module >documentation is horridly lacking. I was able to figure a great deal of what >I need by directly examining the source, however some issues are left >unsolved: > >

Re: PDF::API2

2005-04-20 Thread Owen
On Wed, 20 Apr 2005 10:27:47 -0500 Peter Rabbitson <[EMAIL PROTECTED]> wrote: > Today I am stuck with PDF::API2. Although seeming very powerful, the module > documentation is horridly lacking. I was able to figure a great deal of what > I need by directly examining the sourc

PDF::API2

2005-04-20 Thread Peter Rabbitson
Hi everyone, Today I am stuck with PDF::API2. Although seeming very powerful, the module documentation is horridly lacking. I was able to figure a great deal of what I need by directly examining the source, however some issues are left unsolved: 1. Is there a way to get the (x,y) pos and maybe

PDF::API2 - text over a rectangle

2005-03-13 Thread Daniel Kasak
Hi all. Despite making some decent progress in other areas, I'm banging my head against a brick wall on something simple: rendering text over a solid rectange. my $pdf = PDF::API2->new; $self->{fonts} = { Helvetica => { Bold=> $self->{pdf}->c

Re: PDF Generation with PDF::API2 or similar

2005-02-22 Thread Gavin Henry
> Gavin Henry wrote: >> Dear Gurus, >> >> What is the preferred way to generate PDF file? >> >> I have never done this before and PDF::API2 seems to look good on cpan, >> but I can't find any tutorials. >> >> Anyone got any tips? >> &

Re: PDF Generation with PDF::API2 or similar

2005-02-22 Thread Wiggins d'Anconia
Gavin Henry wrote: Dear Gurus, What is the preferred way to generate PDF file? I have never done this before and PDF::API2 seems to look good on cpan, but I can't find any tutorials. Anyone got any tips? There was a good discussion of this topic on the Chicago PM list in September 2004:

PDF Generation with PDF::API2 or similar

2005-02-17 Thread Gavin Henry
Dear Gurus, What is the preferred way to generate PDF file? I have never done this before and PDF::API2 seems to look good on cpan, but I can't find any tutorials. Anyone got any tips? -- Just getting into the best language ever... Fancy a [EMAIL PROTECTED] Just ask!!! -- To unsubscri

problem with PDF::Report and images (uses PDF::API2)

2003-09-07 Thread Kevin Pfeiffer
Hi all, I'm trying out some PDF modules and have had some success with PDF::Report (http://search.cpan.org/author/AORR/PDF-Report-1.10/Report.pm) adding text and primitive graphics. PD::Report is a wrapper for PDF::API2. But I'm not having any luck inserting images. Here are the in