28, May 2012

PDF stamping tool... in Chinese?! - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  WebDigity Community  >  User Forums  >  Computers  >  Applications (Moderator: Mind_nl)
Topic: PDF stamping tool... in Chinese?!
« previous next »
Pages: [1] Print

Author Topic: PDF stamping tool... in Chinese?!  (Read 3704 times)
Global Moderator
Internet Junkie
*****
Gender: Male
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.


Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jul 04, 2006, 11:16:51 am »

That's a very tough one.

Maybe you could try a search at sf.net

There are many pdf related projects. Try to find something that uses utf encoding

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jul 04, 2006, 11:41:26 am »

Chris, try this

http://www.fpdf.org/

or better this php5 version (has support for utf-8):
http://tcpdf.sourceforge.net/

Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #3 on: Jul 04, 2006, 02:54:05 pm »

Thanks Guys!

FPDF looks promising seeing as the server is only php4...

I will keep you posted.


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Jul 04, 2006, 03:05:23 pm »

Thanks Guys!

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: Male
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?


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jul 04, 2006, 04:14:47 pm »

Is this for importing a pdf that I want to add text too?
yes check this demo: http://www.finalwebsites.com/demos/fpdf_sidn_contract.php
Quote
Does FPDF have the ability to password protect a pdf?
no...

Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Jul 04, 2006, 04:19:46 pm »

this extension will password protect the file: http://www.fpdf.de/downloads/addons/37/

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: Male
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.


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Jul 04, 2006, 04:32:02 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.
success! I use fpdf for several projects and I like it Wink

Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #10 on: Aug 11, 2006, 08:52:48 am »

Is there an add-on that stamps onto existing pdfs?


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: Aug 11, 2006, 09:35:37 am »

Is there an add-on that stamps onto existing pdfs?

if you use fpdf (php4 version) is there fpdi http://fpdi.setasign.de/

Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #12 on: Aug 11, 2006, 09:38:24 am »

Ah sweet that is what was looking fir! Thanks AGAIN!


Last blog : Canonical URL Links / Tags
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #13 on: Aug 11, 2006, 09:39:20 am »

I see you actually mentioned it at the top of the thread; guess it would help if I read it through again! LOL


Last blog : Canonical URL Links / Tags
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #14 on: Aug 11, 2006, 04:09:12 pm »

hmmm... I am having no luck using the fpdi class to stamp in chinese, and I am not sure if I am going to be able to?! Any ideas?


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Aug 11, 2006, 04:15:14 pm »

hmmm... I am having no luck using the fpdi class to stamp in chinese, and I am not sure if I am going to be able to?! Any ideas?
the other script works fine? (the one I send you)

Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #16 on: Aug 11, 2006, 04:20:04 pm »

Yeah the other one seems to work fine, but I need to stamp chinese onto an imported pdf (an existing chinese pdf).


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: Aug 11, 2006, 04:21:08 pm »

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: Male
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.

I will keep you posted...


Last blog : Canonical URL Links / Tags
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
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$string00"");
}
// 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
Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  WebDigity Community  >  User Forums  >  Computers  >  Applications (Moderator: Mind_nl)
Topic: PDF stamping tool... in Chinese?!
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 11:51:00 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.