Topic: PDF stamping tool... in Chinese?! (Read 3704 times)
Global Moderator
Internet Junkie
Gender:
Posts: 1525
6359 credits Members referred : 8
Gimme all your cookies!!!
« on: Jul 04, 2006, 11:14:46 am »
I currently use a pdf stamping tool on our server that currently stamp... well... pdfs! It is limited to stamping only in English, or should I say Western, characters. I am looking for stamping tool that will stamp in Chinese, Traditional Chinese Big Five, to be exact. Anyone know of one?
The one I currently use is on an Apache/Linux server and it is from pdf-tools.com.
FPDF looks promising seeing as the server is only php4...
I will keep you posted.
actually both scripts are using the same functions... I use both of them, If you're using fpdf there is also a extension to import existing pdf's: http://fpdi.setasign.de/
Global Moderator
Internet Junkie
Gender:
Posts: 1525
6359 credits Members referred : 8
Gimme all your cookies!!!
« Reply #5 on: Jul 04, 2006, 03:35:15 pm »
Is this for importing a pdf that I want to add text too?
Does FPDF have the ability to password protect a pdf?
I use the new version (TCPDF) because I need to use > 10 diff. languages (incl. the czech lang) if you can build the appl. for one language which is supported by fpdf then use this version...
Global Moderator
Internet Junkie
Gender:
Posts: 1525
6359 credits Members referred : 8
Gimme all your cookies!!!
« Reply #8 on: Jul 04, 2006, 04:24:58 pm »
Thanks Olaf, I will have to try it out. I see there is an addition for concatinating pdfs too; I will need this too.
Yeah the other one seems to work fine, but I need to stamp chinese onto an imported pdf (an existing chinese pdf).
please send me the pdf file...
Global Moderator
Internet Junkie
Gender:
Posts: 1525
6359 credits Members referred : 8
Gimme all your cookies!!!
« Reply #18 on: Aug 11, 2006, 04:26:51 pm »
I think I have it working...? I altered the class fpdf_tpl to extend PDF_Chinese instead of fpdf because the PDF_Chinese extends the fpdf anyway. This should be ok; this way the fpdi class will inherit both the fpdf and the PDF_Chinese methods.
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #19 on: Aug 11, 2006, 04:30:45 pm »
check this (working) example:
Code:
<?php class SIDN_contract extends fpdi {
// SNIPPED CODE // this method is a group of functions (from fpdi) to open/import an existing pdf file function import_pdf() { $this->setSourceFile(ORIG_SIDN_PDF); $page = $this->ImportPage(1); $this->AddPage(); $this->useTemplate($page); } // these three fpdf function create a text cell at specified position function create_text_field($string, $x, $y, $width, $height = 2) { $this->SetXY($x,$y); $this->Setfont("Arial","",10); $this->Cell($width, $height, $string, 0, 0, ""); } // and at least the output command, the second header is used to resolve cache problems function output_pdf() { $file_name = trim($this->domain).".pdf"; if ($this->preview_pdf == "yes") { header("Content-type: application/pdf"); header ("Cache-control: private"); $this->Output($file_name, "I"); } else { $this->Output($file_name); $this->message[] = $this->message_strings(14); } } }
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3129