Write Japanese text into an existing PDF
Write Japanese text into an existing PDF
am 31.08.2009 10:18:04 von Dave M G
PHP List,
I am looking for a way I can create a PDF file by overlaying text onto
an existing PDF document.
I have found three open source script sets that seem to do that, but I
can't figure out exactly how they inter-relate. They are TCPDF, FPDI,
and FPDF.
>From what I can tell, FPDI (which runs on top of FPDF) can overlay text
onto another PDF, but I can't get any examples to work, so I am unsure
of its stability. Also, I need to output Japanese text, and the
documentation indicates it only supports Latin based fonts.
TCPDF seems more fully featured and promises multilingual support. But
for the life of me I can't find any single example of whether or not it
can take an existing PDF and write text over top.
Surely this is possible and has been done to death before.
Can anyone direct me to a tutorial or sample script that I can use in
order to set up this PDF generation script?
Thank you for any advice.
-- Dave M G
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Write Japanese text into an existing PDF
am 31.08.2009 14:37:37 von TedD
At 5:18 PM +0900 8/31/09, Dave M G wrote:
>PHP List,
>
>I am looking for a way I can create a PDF file by overlaying text onto
>an existing PDF document.
>
>I have found three open source script sets that seem to do that, but I
>can't figure out exactly how they inter-relate. They are TCPDF, FPDI,
>and FPDF.
>
>>From what I can tell, FPDI (which runs on top of FPDF) can overlay text
>onto another PDF, but I can't get any examples to work, so I am unsure
>of its stability. Also, I need to output Japanese text, and the
>documentation indicates it only supports Latin based fonts.
>
>TCPDF seems more fully featured and promises multilingual support. But
>for the life of me I can't find any single example of whether or not it
>can take an existing PDF and write text over top.
>
>Surely this is possible and has been done to death before.
>
>Can anyone direct me to a tutorial or sample script that I can use in
>order to set up this PDF generation script?
>
>Thank you for any advice.
>
>-- Dave M G
Dave:
I used the PDFB library to create this:
http://webbytedd.com/bb/pdf/
Here's a link for more information:
http://chir.ag/projects/pdfb/
While I've never used Japanese text, I think as long as you have a
font for it, it should work.
Good luck.
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Write Japanese text into an existing PDF
am 01.09.2009 06:23:29 von George Langley
On 31-Aug-09, at 6:37 AM, tedd wrote:
>
> I used the PDFB library to create this:
>
> http://webbytedd.com/bb/pdf/
>
> Here's a link for more information:
>
> http://chir.ag/projects/pdfb/
>
> While I've never used Japanese text, I think as long as you have a
> font for it, it should work.
------------
Cool - looks like it could be used to brand a PDF with dynamic text
inserted by a visitor to your site. This has potential for me!
Thanks!
George Langley
Musician, Arranger, Composer
www.georgelangley.ca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Write Japanese text into an existing PDF
am 01.09.2009 14:27:57 von TedD
At 10:23 PM -0600 8/31/09, George Langley wrote:
>On 31-Aug-09, at 6:37 AM, tedd wrote:
>>
>>I used the PDFB library to create this:
>>
>>http://webbytedd.com/bb/pdf/
>>
>>Here's a link for more information:
>>
>>http://chir.ag/projects/pdfb/
>>
>>While I've never used Japanese text, I think as long as you have a
>>font for it, it should work.
>------------
> Cool - looks like it could be used to brand a PDF with
>dynamic text inserted by a visitor to your site. This has potential
>for me!
> Thanks!
>
>George Langley
>Musician, Arranger, Composer
George:
Yes, the dynamic text could come from anywhere (i.e., form, database,
email, whatever).
Using the library, you can create any type of document you want -- it
just takes time.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Write Japanese text into an existing PDF [SOLVED]
am 07.09.2009 12:37:45 von Dave M G
Tedd,
Thank you for responding.
> I used the PDFB library to create this:
> http://chir.ag/projects/pdfb/
> While I've never used Japanese text, I think as long as you have a font
> for it, it should work.
With these scripts, I've successfully created a script that writes text
on top of a PDF document. Haven't tried Japanese fonts yet, but it looks
possible.
Thank you for the tip.
--
Dave M G
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php