[PHP-users 638] Re: FDF$B4X?t$K$D$$$F(B
Masaki YATSU
php-users@php.gr.jp
Mon, 9 Jul 2001 13:39:46 +0900
--Multipart_Mon_Jul__9_13:39:46_2001-1
Content-Type: text/plain; charset=ISO-2022-JP
$B$d$D$G$9!#(B
In message "[PHP-users 547] FDF$B4X?t$K$D$$$F(B"
on 01/07/04, Masaki YATSU <yatsu@softstate.co.jp> writes:
|--- $B$3$3$+$i%3!<%I(B ---
| $value = jstr_convert_encoding($value, "SJIS", "EUC");
|
| $outfdf = fdf_create();
| fdf_set_value($outfdf, "value", $value, 0);
| fdf_set_file($outfdf, "http://foo/bar/test.pdf");
| fdf_save($outfdf, "test.fdf");
| fdf_close($outfdf);
|
| jstr_http_output("pass");
|
| Header("Content-type: application/vnd.fdf");
| //Header("Content-type: text/html");
|
| $fp = fopen("test.fdf", "r");
| fpassthru($fp);
| unlink("test.fdf");
|--- $B$3$3$^$G(B ---
($B>JN,(B)
|test.fdf$B$rD>@\(BWeb$B%V%i%&%6$GI=<($5$;$h$&$H$9$k$H!"$-$A$s$H(B
|Acrobat$B$,5/F0$7!"(Btest.pdf$B$K(Btest.fdf$B$NFbMF$r:9$79~$s$G$$$k$N(B
|$B$G$9$,!"(B$value$B$,F|K\8l$N>l9g!"J8;z2=$1$7$FI=<($5$l$F$7$^$$$^(B
|$B$9!#J8;z2=$1$7$J$$$h$&$K$9$k$K$O>e5-%3!<%I$r$I$&=$@5$9$l$PNI(B
|$B$$$N$G$7$g$&$+(B?
$B$3$NLdBj$O!"(Btest.fdf$BB&$GL@<(E*$K(Bencoding$B$r;XDj$7$F$"$2$k$3$H(B
$B$G2r7h$7$^$7$?!#(B
$B$H$3$m$,!"$3$N(Bencoding$B$r(BPHP$BB&$+$i@_Dj$9$k(BFDF$B4X?t$,$J$$$h$&$J(B
$B$N$G!"$3$N%a!<%k$N:G8e$KE:IU$7$F$"$k$h$&$J(Bpatch$B$r:n$C$F$_$^(B
$B$7$?!#(B
# encoding$B$O(B"Shift-JIS"$B$+(B"Unicode"$B$G$9$,!"(BShift-JIS$B$G$7$+;n(B
# $B$7$F$$$^$;$s!#(B
$BHs>o$KE,Ev$J%Q%C%A$G$9$,!"I,MW$J?M$,$$$?$i;H$C$F$_$F$/$@$5$$!#(B
$B;H$$J}$O!"(B
$outfdf = fdf_create();
fdf_set_encoding($outfdf, "Shift-JIS");
fdf_set_value($outfdf, "value", $value, 0);
fdf_set_file($outfdf, "http://foo/bar/test.pdf");
fdf_save($outfdf, "test.fdf");
fdf_close();
$B$N$h$&$J46$8$G$9!#(B
--
Masaki YATSU
yatsu@softstate.co.jp
--Multipart_Mon_Jul__9_13:39:46_2001-1
Content-Type: application/octet-stream; type=gzip
Content-Disposition: attachment; filename="fdf_encoding.patch.gz"
Content-Transfer-Encoding: base64
H4sICL8qSTsAA2ZkZl9lbmNvZGluZy5wYXRjaADVVVFz2kYQfsa/YqHTjMCCgGKwTUumaiwcUiwY
CTXTTmduZHTClwidRjo8dR3/9+6ekAmOTV7be+B0t9/tffvt3tJqtSC7yVgcxZ2bjszFqnYlU/iw
SQDOoWcNT06G3QFY3W7vqN1u77C1cS5KGFmHXWvY75aw1v6gNfTfmP0z0EvyQstzwK/2EcD8/ZyN
A/fdYjJzDfTNCq6YzFTzp5eMxeZ6LRSLZb5m4VIJmb6M/RTehsUyF5naQY+fh/J0KSORrrSzH3hS
cJojHouUA4HWMtoknGUqBzeYTjUqjUSsQyRVli8o2DvfKahxe5DesN8f9g6od9Y3z/ulegA1zd3R
rFckhgrVpjBr5SBezScoii0WCT+EWT2Lqe9hwihiiq+zJFQHfen7knD1XVKY5AryIubbXJuH4N+k
ex99T18m7H4fcPeB8q1zQ0IPqrr8Twn9f9L5GGg8OVA9rqfxHMjIc0/hdPDGPB181UpOByfmWffk
MWmeswg8ly28wCEn5A0JvW4BkgBnSwI+8zui2UKemyJc4fOWOTEeVrsA11ImPEzhaQBgiFTp3Ugu
N2ueKhMKlZPlsYHsvMDjJogCGv6NiFX7w8Rv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