Re: [TYPO3-german] T3 v6.1 - RealURL und PDF_Generator2

2013-11-04 Diskussionsfäden bernd wilke

Am 04.11.13 10:49, schrieb Marco Brüggemann:


Hallo Leute,

ich stehe gerade voll auf dem Schlauch. Ich möchte RealURL und
PDF-Generator so nutzen, dass mir mit aufrufen einer pdf-Datei im
WebPfad (www.MeineDomain.de/kontakt.pdf) die jeweilige Seite die als
HTML auch existiert un mit RealURL statisch dargestellt wird
(www.MeineDomain.de/kontakt.html), von PDF-Generator umgewandelt wird.

Ich habe jetzt RealURL am laufen, und es ist so konfiguriert

(realurl_autoconf.php)

[...]

);

wenn ich jetzt "www.MeineDomain.de/kontakt.pdf" aufrufe und ich in
dieser Seite keinen Content angelegt habe, wird so etwas ausgegeben:

%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream 2 J 0.57 w q 36.85 36.85 m
36.85 805.04 l 558.43 805.04 l 558.43 36.85 l W n 0.000 G 0.000 g Q
endstream endobj 1 0 obj <> endobj 2 0 obj << /ProcSet [/PDF /Text
/ImageB /ImageC /ImageI] /Font << >> /XObject << >> >> endobj 5 0 obj <<
/Producer (FPDF 1.53) /CreationDate (D:20131104104038) >> endobj 6 0 obj
<< /Type /Catalog /Pages 1 0 R /OpenAction [4 0 R /FitH null]
/PageLayout /OneColumn >> endobj xref 0 7 00 65535 f 000241
0 n 000328 0 n 09 0 n 98 0 n
000422 0 n 000498 0 n trailer << /Size 7 /Root 6 0 R
/Info 5 0 R >> startxref 601 %%EOF

Was bedeutet das?


das sieht nach direktem PDF aus.
du musst wohl für deinen neuen Seitentyp den HTTP-Header modifizieren 
und dafür sorgen, dass die Browser der Besucher der Seite nicht 
versuchen das Ganze als HTML zu interpretieren:


http://php.net/manual/de/function.header.php

bernd
--
http://www.pi-phi.de/cheatsheet.html
___
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


[TYPO3-german] T3 v6.1 - RealURL und PDF_Generator2

2013-11-04 Diskussionsfäden Marco Brüggemann


Hallo Leute,

ich stehe gerade voll auf dem Schlauch. Ich möchte RealURL und 
PDF-Generator so nutzen, dass mir mit aufrufen einer pdf-Datei im 
WebPfad (www.MeineDomain.de/kontakt.pdf) die jeweilige Seite die als 
HTML auch existiert un mit RealURL statisch dargestellt wird 
(www.MeineDomain.de/kontakt.html), von PDF-Generator umgewandelt wird.


Ich habe jetzt RealURL am laufen, und es ist so konfiguriert

(realurl_autoconf.php)
 array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'postVarSet_failureMode' => '',
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
# 'de' => '0',
'en' => '1',
),
'valueDefault' => 'de',
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',

'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 1,
'firstHitPathCache' => 1,
),
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
// news archive parameters
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]' ,
),
array(
'GETvar' => 'tx_ttnews[month]' ,
'valueMap' => array(
'january' => '01',
'february' => '02',
'march' => '03',
'april' => '04',
'may' => '05',
'june' => '06',
'july' => '07',
'august' => '08',
'september' => '09',
'october' => '10',
'november' => '11',
'december' => '12',
)
),
),
// news pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
// news categories
'select_category' => array (
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
// news articles anMd searchwords
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
array(
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'print.html' => array(
'keyValues' => array(
'type' => 98,
),
),
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
'rss091.xml' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf.xml' => array(
'keyValues' => array(
'type' => 102,
),
),
'atom.xml' => array(