logo       

Re: Tk::Canvas to PDF module offer: msg#00002

Subject: Re: Tk::Canvas to PDF module offer
----- Original Message ----- 
From: "Slaven Rezic" <slaven@xxxxxxxx>
To: "Petr Pajas" <pajas@xxxxxxxxxxxxxxxxxxx>
Cc: "John" <isofroni@xxxxxxxxx>; <ptk@xxxxxxxxxxxxxxxxxx>
Sent: Wednesday, December 01, 2004 12:09 AM
Subject: Re: Tk::Canvas to PDF module offer


> Petr Pajas <pajas@xxxxxxxxxxxxxxxxxxx> writes:
>
> > Dne út 30. listopadu 2004 08:31 John napsal(a):
> > > Hello
> > >
> > > How did you hack the module?
> >
> > Simply:-) It uses PDF::API2 module to create the actual PDF content.
> > It creates a new PDF object and a PDF page, then it examinines
> > every object on a given canvas one by one and translates it to a
> > corresponding PDF-object. It's really only a matter of itemCget,
> > some conversions on the object parameters and some PDF::API2 calls.
> >
> > The only harder thing to implement were the arrows (if a multi-line
> > is smooth, you have to position the arrow head correctly) and
> > shapes.
> >
>
> The module looks promising. When trying the pdf() method I get the
> following error message:
>
> ## Can't locate object method "hybrid" via package "PDF::API2::Page" at
/tmp/Tk/Canvas/PDF.pm line 271
>
> both with the stable and the development versions of PDF::API2.
> Replacing the hybrid() method by gfx() made the module work.
>
> Lines, circles and rectangles of all shapes seem to work, while
> polygons are not handled correctly (it seems that rectangles are used
> instead of polygons).
>
> Regards,
>         Slaven
>
> -- 
> Slaven Rezic - slaven <at> rezic <dot> de
>   BBBike - route planner for cyclists in Berlin
>   WWW version:                           http://www.bbbike.de
>   Perl/Tk version for Unix and Windows:  http://bbbike.sourceforge.net
>
> -++**==--++**==--++**==--++**==--++**==--++**==--++**==
> This message was posted through the Stanford campus mailing list
> server.  If you wish to unsubscribe from this mailing list, send the
> message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx
>



Did you try to compile your perl script (using perlapp) ?
Did it work correctly?

Mine isn't as far as is looking for

Tk::Error: Can't locate PDF/API2/TTF/Table.pm in @INC (@INC contains:
C:\DOCUME~
1\ADMINI~1\LOCALS~1\Temp\pdk-Administrator-1496\ C:\progs\Canvas) at
/PerlApp/PD
F/API2/TTF/Font.pm line 333.

Possibly, because i have set pdf font arial.ttf (arial.ttf is in my current
directory)



-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe