バージョン選択

フォーラム

メニュー

オンライン状況

83 人のユーザが現在オンラインです。 (72 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 83
もっと...

サイト内検索

質問 > 管理機能 > pdf出力でエラー

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
ramrun
投稿日時: 2009/8/21 18:56
対応状況: −−−
仙人
登録日: 2006/11/3
居住地:
投稿: 789
Re: pdf出力でエラー
下記、赤字の追加で変化ありますか?

data/pdf/fpdf.php
function Output($name='',$dest='')
{
	:
	略
	:
	switch($dest)
	{
		case 'I':
			//Send to standard output
			if(ob_get_contents())
				$this->Error('Some data has already been output, can\'t send PDF file');
			if(php_sapi_name()!='cli')
			{
				//We send to a browser
				header('Content-Type: application/pdf');
				if(headers_sent())
					$this->Error('Some data has already been output to browser, can\'t send PDF file');
				header('Cache-Control: ');
				header('Pragma: ');
				header('Content-Length: '.strlen($this->buffer));
				header('Content-disposition: inline; filename="'.$name.'"');
			}
			echo $this->buffer;
			break;
		case 'D':
			//Download file
			if(ob_get_contents())
				$this->Error('Some data has already been output, can\'t send PDF file');
			if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE'))
				header('Content-Type: application/force-download');
			else
				header('Content-Type: application/octet-stream');
			if(headers_sent())
				$this->Error('Some data has already been output to browser, can\'t send PDF file');
			header('Cache-Control: ');
			header('Pragma: ');
			header('Content-Length: '.strlen($this->buffer));
			header('Content-disposition: attachment; filename="'.$name.'"');
			echo $this->buffer;
			break;
		case 'F':
			//Save to local file
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   pdf出力でエラー arts 2009/6/18 9:53
     Re: pdf出力でエラー vexit 2009/6/18 10:25
     Re: pdf出力でエラー seasoft 2009/6/18 10:56
       Re: pdf出力でエラー arts 2009/6/18 14:27
         Re: pdf出力でエラー vexit 2009/6/18 16:05
           Re: pdf出力でエラー arts 2009/6/18 17:49
             Re: pdf出力でエラー vexit 2009/6/18 18:50
     Re: pdf出力でエラー seasoft 2009/6/18 19:41
       Re: pdf出力でエラー arts 2009/6/18 21:10
         Re: pdf出力でエラー seasoft 2009/6/19 4:00
     Re: pdf出力でエラー ramrun 2009/6/19 8:26
       Re: pdf出力でエラー arts 2009/6/19 8:59
         Re: pdf出力でエラー ramrun 2009/6/19 13:30
           Re: pdf出力でエラー arts 2009/6/19 13:48
             Re: pdf出力でエラー arts 2009/8/19 0:14
               Re: pdf出力でエラー ramrun 2009/8/20 11:03
                 Re: pdf出力でエラー arts 2009/8/20 11:25
                   Re: pdf出力でエラー ramrun 2009/8/20 12:12
                     Re: pdf出力でエラー arts 2009/8/20 13:01
                       Re: pdf出力でエラー ramrun 2009/8/20 16:39
                         Re: pdf出力でエラー arts 2009/8/20 18:10
                         » Re: pdf出力でエラー ramrun 2009/8/21 18:56
                             Re: pdf出力でエラー arts 2009/8/22 14:11
                               Re: pdf出力でエラー ramrun 2009/8/23 7:33
                                 Re: pdf出力でエラー arts 2009/9/4 10:51
                                   Re: pdf出力でエラー ramrun 2009/9/4 12:55
                                     Re: pdf出力でエラー arts 2009/9/4 13:02
                                       Re: pdf出力でエラー ramrun 2009/9/4 13:14
                                         Re: pdf出力でエラー arts 2009/9/4 19:14

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,856名です
総投稿数は109,989件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1291
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.