Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN]Tcl Interface to HARU Free PDF Library

87 views
Skip to first unread message

Ohtsuka Yoshio

unread,
Sep 23, 2007, 1:16:56 AM9/23/07
to
Hello, c.l.t,

I am writting the Tcl interface to HARU Free PDF Library.
It is not well documented and tested yet.
But I finished to write code at first glance.
If you are interested in it, please test it.
I am happy if you send bugs or any suggestions to me.

** Features
1. Generating PDF files with lines, text, images.
2. Outline, text annotation, link annotation.
3. Compressing document with deflate-decode.
4. Embedding PNG, Jpeg images.
5. Embedding Type1 font and TrueType font.
6. Creating encrypted PDF files.
7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI-8R).
8. Supporting CJK fonts and encodings.

** License
BSD

** Url
http://reddog.s35.xrea.com/wiki/tclhpdf.html

** Haru Free PDF Library
http://libharu.sourceforge.net/


Regards

Roy Terry

unread,
Sep 23, 2007, 11:59:39 AM9/23/07
to

Ohtsuka Yoshio wrote:
> Hello, c.l.t,
>
> I am writting the Tcl interface to HARU Free PDF Library.
> It is not well documented and tested yet.
> But I finished to write code at first glance.
> If you are interested in it, please test it.
> I am happy if you send bugs or any suggestions to me.

Wow! Very nice and quick results running the demo's
on Windows XP with supplied binaries. This is obviously
a low level interface that gives wide access to PDF
capabilities. I think it will be very useful to many
people who need to package application output in a
highly portable way.

Many thanks for good work shared!

Roy

Roy Terry

unread,
Sep 24, 2007, 1:00:26 PM9/24/07
to
Ohtsuka Yoshio wrote:
> Hello, c.l.t,
>
> I am writting the Tcl interface to HARU Free PDF Library.
> It is not well documented and tested yet.
> But I finished to write code at first glance.
> If you are interested in it, please test it.
> I am happy if you send bugs or any suggestions to me.
>
> ** Features
> 1. Generating PDF files with lines, text, images.
> 2. Outline, text annotation, link annotation.
> 3. Compressing document with deflate-decode.
> 4. Embedding PNG, Jpeg images.
On image_demo.tcl the displayed images for "Skewing Image" and
"Rotating Image" displays look to me to be identical
to the starting image.I am using Adobe Reader 7.0 on
Windows XP. Any chance of a bug here?
Roy

> 5. Embedding Type1 font and TrueType font.
> 6. Creating encrypted PDF files.
> 7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI-8R).
> 8. Supporting CJK fonts and encodings.
>
> ** License
> BSD
>
> ** Url
> http://reddog.s35.xrea.com/wiki/tclhpdf.html
Added to wiki.tcl.tk on "PDF" page

Ohtsuka Yoshio

unread,
Sep 25, 2007, 8:55:42 AM9/25/07
to


Sorry, this was a bug of demo script.
Here is a patch for the bug.

--- demo/image_demo.tcl ( 1)
+++ demo/image_demo.tcl ( )
@@ -109,8 +109,8 @@
# Skewing image.
set angle1 10
set angle2 20
- set rad1 [expr {$angle1 / 180 * 3.141592}]
- set rad2 [expr {$angle2 / 180 * 3.141592}]
+ set rad1 [expr {$angle1 / 180.0 * 3.141592}]
+ set rad2 [expr {$angle2 / 180.0 * 3.141592}]

$page gSave

@@ -128,7 +128,7 @@

# Rotating image
set angle 30 ;# rotation of 30 degrees.
- set rad [expr {$angle / 180 * 3.141592}];# Calcurate the radian
value.
+ set rad [expr {$angle / 180.0 * 3.141592}];# Calcurate the radian
value.

$page gSave

yahalom

unread,
Sep 25, 2007, 9:23:55 AM9/25/07
to
I tried this package on linux redhat and it was a breeze.
I was beating my head against the wall the last days trying to find an
html -> pdf converter that support Hebrew. I tried and compiled
millions of libraries with zero result - with all of them Hebrew came
as gibberish. Today I got tcl-url and immediately tried the package.
It was of such simplicity - compile haru,png and the tcl package in 5
minutes and start working. I got hebrew text with no problem...(well
some help from ohtsuka yoshio by mail but it was my fault as I did not
look at the docs - too many days of compiling and reading docs)
amazing! such simplicity.

Roy Terry

unread,
Sep 25, 2007, 11:52:54 AM9/25/07
to
Ohtsuka Yoshio wrote:
> On 9 25 , 2:00, Roy Terry <r...@terryhome.org> wrote:
>> On image_demo.tcl the displayed images for "Skewing Image" and
>> "Rotating Image" displays look to me to be identical
>> to the starting image.I am using Adobe Reader 7.0 on
>> Windows XP. Any chance of a bug here?
>> Roy
>
> Sorry, this was a bug of demo script.
> Here is a patch for the bug.
>
> --- demo/image_demo.tcl ( 1)
> +++ demo/image_demo.tcl ( )
> @@ -109,8 +109,8 @@
> # Skewing image.
> set angle1 10
> set angle2 20
> - set rad1 [expr {$angle1 / 180 * 3.141592}]
> - set rad2 [expr {$angle2 / 180 * 3.141592}]
> + set rad1 [expr {$angle1 / 180.0 * 3.141592}]
> + set rad2 [expr {$angle2 / 180.0 * 3.141592}]
>
> $page gSave
>
> @@ -128,7 +128,7 @@
>
> # Rotating image
> set angle 30 ;# rotation of 30 degrees.
> - set rad [expr {$angle / 180 * 3.141592}];# Calcurate the radian
> value.
> + set rad [expr {$angle / 180.0 * 3.141592}];# Calcurate the radian
> value.
>
> $page gSave
>
Yes. That fixed it.
0 new messages