Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Except for 75% of the women, everyone in the whole world wants to have sex. -- Ellyn Mustard


devel / comp.lang.tcl / Re: pdf output with a clickable url

SubjectAuthor
* pdf output with a clickable urlHarald Oehlmann
+* Re: pdf output with a clickable urlChristian Gollwitzer
|`* Re: pdf output with a clickable urlHarald Oehlmann
| `* Re: pdf output with a clickable urlHarald Oehlmann
|  `* Re: pdf output with a clickable urlHarald Oehlmann
|   `* Re: pdf output with a clickable urlChristian Gollwitzer
|    +- Re: pdf output with a clickable urlHarald Oehlmann
|    `- Re: pdf output with a clickable urlHarald Oehlmann
`* Re: pdf output with a clickable urlLuis Alejandro Muzzachiodi
 `- Re: pdf output with a clickable urlHarald Oehlmann

1
pdf output with a clickable url

<uragiq$khtf$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13377&group=comp.lang.tcl#13377

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: pdf output with a clickable url
Date: Fri, 23 Feb 2024 17:19:37 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uragiq$khtf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Feb 2024 16:19:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2839d56683fe88597a7ea4c84a6e09b3";
logging-data="673711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lriLYS0A6TdxyyNJ3nXzi"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2yv7JmhuQflvTQVmbjjfv49lOu4=
Content-Language: en-GB
 by: Harald Oehlmann - Fri, 23 Feb 2024 16:19 UTC

I am still with a huge rewrite of PDF output.
The challenge of Chinese characters was already answered by tclFPDF.
https://github.com/lamuzzachiodi/tclfpdf
A 2nd challenge is to add URL links. tFPDF also has the method "Write",
which may take a URL Link.

So far, I use TCLPDF.
I would love to have those two features ported to TCLPDF:
- add the dynamic font creation for arbitrary unicode text.
- add the possibility to add a hyerlink with a clickable URL

But I suppose, I have to migrate my code to tFPDF.

Or do you see any chance to unify the projects?

Thank you and take care,
Harald

Re: pdf output with a clickable url

<uratoj$nk8p$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13380&group=comp.lang.tcl#13380

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Fri, 23 Feb 2024 21:04:33 +0100
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <uratoj$nk8p$1@dont-email.me>
References: <uragiq$khtf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Feb 2024 20:04:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfd52514506d684f71aba61aa94c984a";
logging-data="774425"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ytZWghMh2DrmI34QEkT+yyqE0GMw9mV8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nWK3qNjmfJIuRF+fp47LAO84Z3o=
In-Reply-To: <uragiq$khtf$1@dont-email.me>
 by: Christian Gollwitzer - Fri, 23 Feb 2024 20:04 UTC

Am 23.02.24 um 17:19 schrieb Harald Oehlmann:
> I am still with a huge rewrite of PDF output.
> The challenge of Chinese characters was already answered by tclFPDF.
> https://github.com/lamuzzachiodi/tclfpdf
> A 2nd challenge is to add URL links. tFPDF also has the method "Write",
> which may take a URL Link.
>
> So far, I use TCLPDF.

I suppose you mean pdf4tcl by Peter Spjuth, correct? A good while ago, I
added PDF attachments to pdf4tcl.

> I would love to have those two features ported to TCLPDF:
>    -   add the dynamic font creation for arbitrary unicode text.
>    -   add the possibility to add a hyerlink with a clickable URL
>
> But I suppose, I have to migrate my code to tFPDF.
>
> Or do you see any chance to unify the projects?

Adding links to pdf4tcl is probably relatively easy. The spec is totally
open:
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
See under 12.5.6.5 "Link annotations", below the table you see how it
the code would look like. Before compression, PDF is a text format with
the characteristic << >> brackets for objects (they are like dicts).
Such a link is not visible by itself, it is attached to some area on the
page, where you can draw anything else to make the link clear. In
pdf4tcl, you can use "AddObject" to add such a thing.

The thing with the UTF-8 text seems much more complicated. I haven't
looked into PDF recently; in the original version, each font could only
have 256 characters and so the software split fonts into multiple
subfonts. ISTR that for the Chinese case, there was an alternative way
of font handling with 64k characters. If there is a way to make a PDF
font with all characters, than you only need to port over the code for
the font creation and can then use it. If, however, tFPDF does it as in
the old days, creating multiple fonts and switching in the fly between
them, then I'm afraid that would mean to replace the entire text drawing
code. If you don't feel like looking into it yourself, maybe you can pay
someone to do it ;)

Christian

Re: pdf output with a clickable url

<urhjt2$2eoke$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13386&group=comp.lang.tcl#13386

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Mon, 26 Feb 2024 09:59:13 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <urhjt2$2eoke$2@dont-email.me>
References: <uragiq$khtf$1@dont-email.me> <uratoj$nk8p$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 26 Feb 2024 08:59:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ce8b64f94f09f047a293dc395840d90a";
logging-data="2581134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+1MVDaj5izZ/oy2P8yrec"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dXaV/Vhpd/JwgD1E6cX7r5eC/J8=
Content-Language: en-GB
In-Reply-To: <uratoj$nk8p$1@dont-email.me>
 by: Harald Oehlmann - Mon, 26 Feb 2024 08:59 UTC

Am 23.02.2024 um 21:04 schrieb Christian Gollwitzer:
> Am 23.02.24 um 17:19 schrieb Harald Oehlmann:
>> I am still with a huge rewrite of PDF output.
>> The challenge of Chinese characters was already answered by tclFPDF.
>> https://github.com/lamuzzachiodi/tclfpdf
>> A 2nd challenge is to add URL links. tFPDF also has the method
>> "Write", which may take a URL Link.
>>
>> So far, I use TCLPDF.
>
> I suppose you mean pdf4tcl by Peter Spjuth, correct? A good while ago, I
> added PDF attachments to pdf4tcl.
>
>> I would love to have those two features ported to TCLPDF:
>>     -   add the dynamic font creation for arbitrary unicode text.
>>     -   add the possibility to add a hyerlink with a clickable URL
>>
>> But I suppose, I have to migrate my code to tFPDF.
>>
>> Or do you see any chance to unify the projects?
>
> Adding links to pdf4tcl is probably relatively easy. The spec is totally
> open:
> https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
> See under 12.5.6.5 "Link annotations", below the table you see how it
> the code would look like. Before compression, PDF is a text format with
> the characteristic << >> brackets for objects (they are like dicts).
> Such a link is not visible by itself, it is attached to some area on the
> page, where you can draw anything else to make the link clear. In
> pdf4tcl, you can use "AddObject" to add such a thing.
>
> The thing with the UTF-8 text seems much more complicated. I haven't
> looked into PDF recently; in the original version, each font could only
> have 256 characters and so the software split fonts into multiple
> subfonts. ISTR that for the Chinese case, there was an alternative way
> of font handling with 64k characters. If there is a way to make a PDF
> font with all characters, than you only need to port over the code for
> the font creation and can then use it. If, however, tFPDF does it as in
> the old days, creating multiple fonts and switching in the fly between
> them, then I'm afraid that would mean to replace the entire text drawing
> code. If you don't feel like looking into it yourself, maybe you can pay
> someone to do it ;)
>
>          Christian

Hi Christian,

thanks for the valuable contribution and motivation !
Take care,
Harald

Re: pdf output with a clickable url

<urikb0$2lqoq$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13387&group=comp.lang.tcl#13387

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Mon, 26 Feb 2024 19:12:48 +0100
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <urikb0$2lqoq$1@dont-email.me>
References: <uragiq$khtf$1@dont-email.me> <uratoj$nk8p$1@dont-email.me>
<urhjt2$2eoke$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 26 Feb 2024 18:12:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ce8b64f94f09f047a293dc395840d90a";
logging-data="2812698"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AMyE5j7ndiIpTiUxuSpAV"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eG910rh5gucTEx+YqK8eVZphxpQ=
Content-Language: en-GB
In-Reply-To: <urhjt2$2eoke$2@dont-email.me>
 by: Harald Oehlmann - Mon, 26 Feb 2024 18:12 UTC

Am 26.02.2024 um 09:59 schrieb Harald Oehlmann:
> Am 23.02.2024 um 21:04 schrieb Christian Gollwitzer:
>> Am 23.02.24 um 17:19 schrieb Harald Oehlmann:
>>> I am still with a huge rewrite of PDF output.
>>> The challenge of Chinese characters was already answered by tclFPDF.
>>> https://github.com/lamuzzachiodi/tclfpdf
>>> A 2nd challenge is to add URL links. tFPDF also has the method
>>> "Write", which may take a URL Link.
>>>
>>> So far, I use TCLPDF.
>>
>> I suppose you mean pdf4tcl by Peter Spjuth, correct? A good while ago,
>> I added PDF attachments to pdf4tcl.
>>
>>> I would love to have those two features ported to TCLPDF:
>>>     -   add the dynamic font creation for arbitrary unicode text.
>>>     -   add the possibility to add a hyerlink with a clickable URL
>>>
>>> But I suppose, I have to migrate my code to tFPDF.
>>>
>>> Or do you see any chance to unify the projects?
>>
>> Adding links to pdf4tcl is probably relatively easy. The spec is
>> totally open:
>> https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
>> See under 12.5.6.5 "Link annotations", below the table you see how it
>> the code would look like. Before compression, PDF is a text format
>> with the characteristic << >> brackets for objects (they are like
>> dicts). Such a link is not visible by itself, it is attached to some
>> area on the page, where you can draw anything else to make the link
>> clear. In pdf4tcl, you can use "AddObject" to add such a thing.
>>
>> The thing with the UTF-8 text seems much more complicated. I haven't
>> looked into PDF recently; in the original version, each font could
>> only have 256 characters and so the software split fonts into multiple
>> subfonts. ISTR that for the Chinese case, there was an alternative way
>> of font handling with 64k characters. If there is a way to make a PDF
>> font with all characters, than you only need to port over the code for
>> the font creation and can then use it. If, however, tFPDF does it as
>> in the old days, creating multiple fonts and switching in the fly
>> between them, then I'm afraid that would mean to replace the entire
>> text drawing code. If you don't feel like looking into it yourself,
>> maybe you can pay someone to do it ;)
>>
>>           Christian
>
> Hi Christian,
>
> thanks for the valuable contribution and motivation !
> Take care,
> Harald

Christian,
I have put your valuable information to two tickets in pdf4tcl.

Do you volunteer to be payed ;-).

I think, my current application with only some lines of Chinese Text
will work-out with the current possibilities.
But it would be great, if we should just not worry.

I also asked Jan about a list of Unicode Codepoints an encoding covers.
He answered, that this information is available in memory when an
encoding is loaded. That may also be helpful for the issue.
But with TCL 9, we may check, if a certain string may be covered by a
certain encoding.

Thanks for all and take care,
Harald

Re: pdf output with a clickable url

<urnrqm$jmg$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13395&group=comp.lang.tcl#13395

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Wed, 28 Feb 2024 18:51:18 +0100
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <urnrqm$jmg$1@dont-email.me>
References: <uragiq$khtf$1@dont-email.me> <uratoj$nk8p$1@dont-email.me>
<urhjt2$2eoke$2@dont-email.me> <urikb0$2lqoq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Feb 2024 17:51:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="75088c361c1919e3a5ff940ba499003a";
logging-data="20176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vdLtKY/kR+oElkE7tWTUl"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FW2z5H+K3/Zs7OFP5sTshODxlvE=
Content-Language: en-GB
In-Reply-To: <urikb0$2lqoq$1@dont-email.me>
 by: Harald Oehlmann - Wed, 28 Feb 2024 17:51 UTC

Am 26.02.2024 um 19:12 schrieb Harald Oehlmann:
> Am 26.02.2024 um 09:59 schrieb Harald Oehlmann:
>> Am 23.02.2024 um 21:04 schrieb Christian Gollwitzer:
>>> Am 23.02.24 um 17:19 schrieb Harald Oehlmann:
>>>> I am still with a huge rewrite of PDF output.
>>>> The challenge of Chinese characters was already answered by tclFPDF.
>>>> https://github.com/lamuzzachiodi/tclfpdf
>>>> A 2nd challenge is to add URL links. tFPDF also has the method
>>>> "Write", which may take a URL Link.
>>>>
>>>> So far, I use TCLPDF.
>>>
>>> I suppose you mean pdf4tcl by Peter Spjuth, correct? A good while
>>> ago, I added PDF attachments to pdf4tcl.
>>>
>>>> I would love to have those two features ported to TCLPDF:
>>>>     -   add the dynamic font creation for arbitrary unicode text.
>>>>     -   add the possibility to add a hyerlink with a clickable URL
>>>>
>>>> But I suppose, I have to migrate my code to tFPDF.
>>>>
>>>> Or do you see any chance to unify the projects?
>>>
>>> Adding links to pdf4tcl is probably relatively easy. The spec is
>>> totally open:
>>> https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
>>> See under 12.5.6.5 "Link annotations", below the table you see how it
>>> the code would look like. Before compression, PDF is a text format
>>> with the characteristic << >> brackets for objects (they are like
>>> dicts). Such a link is not visible by itself, it is attached to some
>>> area on the page, where you can draw anything else to make the link
>>> clear. In pdf4tcl, you can use "AddObject" to add such a thing.
>>>
>>> The thing with the UTF-8 text seems much more complicated. I haven't
>>> looked into PDF recently; in the original version, each font could
>>> only have 256 characters and so the software split fonts into
>>> multiple subfonts. ISTR that for the Chinese case, there was an
>>> alternative way of font handling with 64k characters. If there is a
>>> way to make a PDF font with all characters, than you only need to
>>> port over the code for the font creation and can then use it. If,
>>> however, tFPDF does it as in the old days, creating multiple fonts
>>> and switching in the fly between them, then I'm afraid that would
>>> mean to replace the entire text drawing code. If you don't feel like
>>> looking into it yourself, maybe you can pay someone to do it ;)
>>>
>>>           Christian
>>
>> Hi Christian,
>>
>> thanks for the valuable contribution and motivation !
>> Take care,
>> Harald
>
> Christian,
> I have put your valuable information to two tickets in pdf4tcl.
>
> Do you volunteer to be payed ;-).
>
> I think, my current application with only some lines of Chinese Text
> will work-out with the current possibilities.
> But it would be great, if we should just not worry.
>
> I also asked Jan about a list of Unicode Codepoints an encoding covers.
> He answered, that this information is available in memory when an
> encoding is loaded. That may also be helpful for the issue.
> But with TCL 9, we may check, if a certain string may be covered by a
> certain encoding.
>
> Thanks for all and take care,
> Harald

Thanks to Christian for the answer and motivation.
It was not so hard to implement. A patch is in ticket
https://sourceforge.net/p/pdf4tcl/tickets/15/

Thanks for all !
Harald

Re: pdf output with a clickable url

<urqf5j$ngt7$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13402&group=comp.lang.tcl#13402

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Thu, 29 Feb 2024 18:33:39 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <urqf5j$ngt7$1@dont-email.me>
References: <uragiq$khtf$1@dont-email.me> <uratoj$nk8p$1@dont-email.me>
<urhjt2$2eoke$2@dont-email.me> <urikb0$2lqoq$1@dont-email.me>
<urnrqm$jmg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 29 Feb 2024 17:33:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="26cb9efd308cbb62fd525b316dc00d5d";
logging-data="770983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BPH8dX23k++qomtvME6A6uLr0qLHj2JM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:48hP+Mc2PTFbbkJN70jaHoBQSGs=
In-Reply-To: <urnrqm$jmg$1@dont-email.me>
 by: Christian Gollwitzer - Thu, 29 Feb 2024 17:33 UTC

Am 28.02.24 um 18:51 schrieb Harald Oehlmann:
> Thanks to Christian for the answer and motivation.
> It was not so hard to implement. A patch is in ticket
> https://sourceforge.net/p/pdf4tcl/tickets/15/
>

That's great - I knew you could do it! Now you only have to dig into CJK
fonts... :P

Christian

Re: pdf output with a clickable url

<urs84a$15efc$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13408&group=comp.lang.tcl#13408

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Fri, 1 Mar 2024 10:45:47 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <urs84a$15efc$1@dont-email.me>
References: <uragiq$khtf$1@dont-email.me> <uratoj$nk8p$1@dont-email.me>
<urhjt2$2eoke$2@dont-email.me> <urikb0$2lqoq$1@dont-email.me>
<urnrqm$jmg$1@dont-email.me> <urqf5j$ngt7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 1 Mar 2024 09:45:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="64c9927feff419283b373c7d5d34f073";
logging-data="1227244"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LtPVofDnMisagpytpHevM"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XmyOSGWZhmElmKXKtjvIUA8xmX0=
Content-Language: en-GB
In-Reply-To: <urqf5j$ngt7$1@dont-email.me>
 by: Harald Oehlmann - Fri, 1 Mar 2024 09:45 UTC

Am 29.02.2024 um 18:33 schrieb Christian Gollwitzer:
> Am 28.02.24 um 18:51 schrieb Harald Oehlmann:
>> Thanks to Christian for the answer and motivation.
>> It was not so hard to implement. A patch is in ticket
>> https://sourceforge.net/p/pdf4tcl/tickets/15/
>>
>
> That's great - I knew you could do it! Now you only have to dig into CJK
> fonts... :P
>
>     Christian
>

Thank you, Christian, I really appreciate your motivation and
professional information, which made this possible.
And the framework to add an anotation to a page was already there.
I suppose, you did that.

Tkan you so much,
Harald

Re: pdf output with a clickable url

<urs9tf$15efc$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13409&group=comp.lang.tcl#13409

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Fri, 1 Mar 2024 11:16:15 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <urs9tf$15efc$2@dont-email.me>
References: <uragiq$khtf$1@dont-email.me> <uratoj$nk8p$1@dont-email.me>
<urhjt2$2eoke$2@dont-email.me> <urikb0$2lqoq$1@dont-email.me>
<urnrqm$jmg$1@dont-email.me> <urqf5j$ngt7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 1 Mar 2024 10:16:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="64c9927feff419283b373c7d5d34f073";
logging-data="1227244"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jTci8NC3imbdWSpPcemjW"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iAw2GX37+qN05BE2ACa3Yy6ZLII=
In-Reply-To: <urqf5j$ngt7$1@dont-email.me>
Content-Language: en-GB
 by: Harald Oehlmann - Fri, 1 Mar 2024 10:16 UTC

Am 29.02.2024 um 18:33 schrieb Christian Gollwitzer:
> Am 28.02.24 um 18:51 schrieb Harald Oehlmann:
>> Thanks to Christian for the answer and motivation.
>> It was not so hard to implement. A patch is in ticket
>> https://sourceforge.net/p/pdf4tcl/tickets/15/
>>
>
> That's great - I knew you could do it! Now you only have to dig into CJK
> fonts... :P
>
>     Christian
>

Christian,

CJK? Oh, this is complex! So much code and tables in the font handling.
I solved the CJK issue with the present code. I count the codepoints and
have only 60, so it is far from 256. I will add some findings to pdf4tcl
tickets about additional observations.

Here is my report announcement in the thread "pdf4tcl and Chinese
characters"
> But now, this issue is solved using PDF4TCL as described at the very end
> of:
> https://wiki.tcl-lang.org/page/pdf4tcl
>
> It is quite manual and an automated process like in tclfpdf would be
> great. The pdf4tcl ticket tracked GOT 6 new tickets.
>

Thank you for all,
Harald

Re: pdf output with a clickable url

<0c26b0d8-a75d-40be-bc72-5705c16eaf15@yahoo.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13511&group=comp.lang.tcl#13511

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aleccp@yahoo.com (Luis Alejandro Muzzachiodi)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Fri, 8 Mar 2024 20:03:11 -0300
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <0c26b0d8-a75d-40be-bc72-5705c16eaf15@yahoo.com>
References: <uragiq$khtf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="9ef43c565aa715d07af9af13c283947f";
logging-data="2060524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1WThJMk4CXsnVLvuoR1h9"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gpAZpJhnyvabKSqoyEY5syClPpI=
In-Reply-To: <uragiq$khtf$1@dont-email.me>
Content-Language: es-AR
 by: Luis Alejandro Muzza - Fri, 8 Mar 2024 23:03 UTC

El 23/02/2024 a las 13:19, Harald Oehlmann escribió:
> I am still with a huge rewrite of PDF output.
> The challenge of Chinese characters was already answered by tclFPDF.
> https://github.com/lamuzzachiodi/tclfpdf
> A 2nd challenge is to add URL links. tFPDF also has the method "Write",
> which may take a URL Link.
>
> So far, I use TCLPDF.
> I would love to have those two features ported to TCLPDF:
>    -   add the dynamic font creation for arbitrary unicode text.
>    -   add the possibility to add a hyerlink with a clickable URL
>
> But I suppose, I have to migrate my code to tFPDF.
>
> Or do you see any chance to unify the projects?
>
> Thank you and take care,
> Harald

Hello, Harald,

with TCLFPDF you can use links to URL or to another place within the
document.

For Example :

package require tclfpdf
namespace import ::tclfpdf::*

;# First page
Init
AddPage
;# Add a Unicode font (uses UTF-8)
AddFont "DejaVu" "" "DejaVuSansCondensed.ttf" 1
SetFont "DejaVu" "" 14
Write 5 "To find out what's cool in this example, click "
set link [AddLink]
SetFont "DejaVu" "U" 14;
Write 5 "Здравствулте мир" $link
;# Second page
AddPage
SetLink $link
Image "logo.gif" 10 12 30 0 "" "http://www.fpdf.org"
Output "link.pdf"

Respect to font creation, you have the makefont utility (makefont
subdirectory). The second parameter is the encoding (default is cp1252).
Encodings are stored in .map files (there are availables cp1258
-Vietnamese- or cp874 -Thai- among others) but you could create your own.
For more info you can take a look to
http://www.fpdf.org/en/tutorial/tuto7.htm. This is the original doc in
PHP (sorry, i've forgeted add this doc in TCLFPDF). However, the
concepts and the application is the same.

Alejandro

Re: pdf output with a clickable url

<uskr4l$32rl8$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13513&group=comp.lang.tcl#13513

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: pdf output with a clickable url
Date: Sun, 10 Mar 2024 18:37:26 +0100
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <uskr4l$32rl8$1@dont-email.me>
References: <uragiq$khtf$1@dont-email.me>
<0c26b0d8-a75d-40be-bc72-5705c16eaf15@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Mar 2024 17:37:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d10c5eeeed11299637b63c4ae95e00a3";
logging-data="3239592"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ofXIcr20Xaci43I/kN6fx"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Qut7S/DMFpQkCkFbCk87B5prl8o=
Content-Language: en-GB
In-Reply-To: <0c26b0d8-a75d-40be-bc72-5705c16eaf15@yahoo.com>
 by: Harald Oehlmann - Sun, 10 Mar 2024 17:37 UTC

Am 09.03.2024 um 00:03 schrieb Luis Alejandro Muzzachiodi:
> El 23/02/2024 a las 13:19, Harald Oehlmann escribió:
>> I am still with a huge rewrite of PDF output.
>> The challenge of Chinese characters was already answered by tclFPDF.
>> https://github.com/lamuzzachiodi/tclfpdf
>> A 2nd challenge is to add URL links. tFPDF also has the method
>> "Write", which may take a URL Link.
>>
>> So far, I use TCLPDF.
>> I would love to have those two features ported to TCLPDF:
>>     -   add the dynamic font creation for arbitrary unicode text.
>>     -   add the possibility to add a hyerlink with a clickable URL
>>
>> But I suppose, I have to migrate my code to tFPDF.
>>
>> Or do you see any chance to unify the projects?
>>
>> Thank you and take care,
>> Harald
>
> Hello, Harald,
>
> with TCLFPDF you can use links to URL or to another place within the
> document.
>
> For Example :
>
> package require tclfpdf
> namespace import  ::tclfpdf::*
>
> ;# First page
> Init
> AddPage
> ;# Add a Unicode font (uses UTF-8)
> AddFont "DejaVu" "" "DejaVuSansCondensed.ttf" 1
> SetFont "DejaVu" "" 14
> Write 5 "To find out what's cool in this example, click "
> set link [AddLink]
> SetFont "DejaVu" "U" 14;
> Write 5 "Здравствулте мир" $link
> ;# Second page
> AddPage
> SetLink $link
> Image "logo.gif" 10 12 30 0 "" "http://www.fpdf.org"
> Output "link.pdf"
>
> Respect to font creation, you have the makefont utility (makefont
> subdirectory). The second parameter is the encoding (default is cp1252).
> Encodings are stored in .map files (there are availables cp1258
> -Vietnamese- or cp874 -Thai- among others) but you could create your own.
> For more info you can take a look to
> http://www.fpdf.org/en/tutorial/tuto7.htm. This is the original doc in
> PHP (sorry, i've forgeted add this doc in TCLFPDF). However, the
> concepts and the application is the same.
>
>
> Alejandro

Ajejandro,
thank you for the great work, I appreciate !
Take care,
Harald

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor