cleverpig | 20 Aug 10:34

Pike's PDF library is unavailable?

I used Pike 7.6.112,and I didn't find a way to use pdf library.
I checked pike reference for PDF.PDFgen class,there wasn't a create
function.So how to create PDF.PDFgen class's object instance?

--

-- 
cleverpig
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan <at> hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
My Facebook ID:cleverpig
My Blog: www.morpheus.org.cn
My Tags: del.icio.us/cleverpig
My Twitter: twitter.com/cleverpig
My Organization: www.beijing-open-party.org
My Organ <at> Facebook: http://www.facebook.com/group.php?gid=8159558294

Bill Welliver | 20 Aug 16:38
Gravatar

Re: Pike's PDF library is unavailable?

I'm not sure that the windows build of Pike includes PDF support.

If your Pike has Java support, you can use the iText package to generate 
PDFs... I've had good luck with that (and might even have some sample code 
somewhere).

Bill

On Wed, 20 Aug 2008, cleverpig wrote:

> I used Pike 7.6.112,and I didn't find a way to use pdf library.
> I checked pike reference for PDF.PDFgen class,there wasn't a create
> function.So how to create PDF.PDFgen class's object instance?
>
> -- 
> cleverpig
> Location: Beijing
> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
> Zipcode: 100031
> MSN: great_liudan <at> hotmail.com
> QQ: 149291732
> Skype: cleverpigatmatrix
> My Facebook ID:cleverpig
> My Blog: www.morpheus.org.cn
> My Tags: del.icio.us/cleverpig
> My Twitter: twitter.com/cleverpig
> My Organization: www.beijing-open-party.org
> My Organ <at> Facebook: http://www.facebook.com/group.php?gid=8159558294
>
>
(Continue reading)

cleverpig | 20 Aug 17:14

Re: Pike's PDF library is unavailable?

Thanks,Bill!

I checked modules in lib where include a PDF.so,but I'm not sure that
windows version supports PDF.

How to get a tutorial about using pike-java bridge just like you said?

On Wed, Aug 20, 2008 at 10:38 PM, Bill Welliver <hww3 <at> riverweb.com> wrote:
> I'm not sure that the windows build of Pike includes PDF support.
>
> If your Pike has Java support, you can use the iText package to generate
> PDFs... I've had good luck with that (and might even have some sample code
> somewhere).
>
> Bill
>
> On Wed, 20 Aug 2008, cleverpig wrote:
>
>> I used Pike 7.6.112,and I didn't find a way to use pdf library.
>> I checked pike reference for PDF.PDFgen class,there wasn't a create
>> function.So how to create PDF.PDFgen class's object instance?
>
>> --
>> cleverpig
>> Location: Beijing
>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>> Zipcode: 100031
>> MSN: great_liudan <at> hotmail.com
>> QQ: 149291732
>> Skype: cleverpigatmatrix
(Continue reading)

Re: Pike's PDF library is unavailable?

The windows build does not link with libpdf unfortunately. The *.so
files are generated regardless, but are stubs not exporting any
functionality.

Bill Welliver | 21 Aug 21:01
Gravatar

Re: Pike's PDF library is unavailable?

I've attached a simple file that creates a pdf file and writes a paragraph 
to it using iText. iText is a pretty powerful package, you can do all 
kinds of crazy stuff with it, but it's also pretty easy to get odd 
behavior if you don't do things the way it expects them done.

Pike's Java bridge isn't perfect; there are times when you'll need to use 
very un-pike like constructs to get access to java methods and such; 
this happens a lot when Pike isn't able to automatically select the right 
version of a method for you. You'll notice this in the newParagraph().

You may also want to check out my notes on the java-pike bridge in 
general, located here:

http://hww3.riverweb.com/space/pike/Java%20Bridge

To use the code, download itext from the itext website:

http://www.lowagie.com/iText/

Add the jar to your CLASSPATH and run the pike script attached.

As a side note, it might be nice to develop a collection of wrappers for 
itext that make using it in Pike a little less painful (such as some of 
the things you'll find in the sample code.

Enjoy!

Bill

> Thanks,Bill!
(Continue reading)

cleverpig | 22 Aug 02:15

Re: Pike's PDF library is unavailable?

I got it! It's not easy to make a prefect java bridge!
pike's advantage is its low study curve and make use of linux
infrastructure(windows is suck).
 :)

On Fri, Aug 22, 2008 at 3:01 AM, Bill Welliver <hww3 <at> riverweb.com> wrote:
> I've attached a simple file that creates a pdf file and writes a paragraph
> to it using iText. iText is a pretty powerful package, you can do all kinds
> of crazy stuff with it, but it's also pretty easy to get odd behavior if you
> don't do things the way it expects them done.
>
> Pike's Java bridge isn't perfect; there are times when you'll need to use
> very un-pike like constructs to get access to java methods and such; this
> happens a lot when Pike isn't able to automatically select the right version
> of a method for you. You'll notice this in the newParagraph().
>
> You may also want to check out my notes on the java-pike bridge in general,
> located here:
>
> http://hww3.riverweb.com/space/pike/Java%20Bridge
>
> To use the code, download itext from the itext website:
>
> http://www.lowagie.com/iText/
>
> Add the jar to your CLASSPATH and run the pike script attached.
>
> As a side note, it might be nice to develop a collection of wrappers for
> itext that make using it in Pike a little less painful (such as some of the
> things you'll find in the sample code.
(Continue reading)


Gmane