<?
$log = fopen("seiten.log", "w");
fputs($log, "Seite ".$_GET[seite]." wird erstellt\n");
include ("conf_inc.php");
include ("functions_inc.php");
include ("function.calccrop.inc.php");
/* Variablen aus der conf_inc.php
$multiplikator_X
$multiplikator_Y
$rand_innen
$rand_aussen
$rand_oben_unten
$seiten_breite
$seiten_hoehe
$rand_oben_unten_fuer_pic
$rand_innen_fuer_pic
$rand_aussen_fuer_pic
$seiten_breite_fuer_pic
$seiten_hoehe_fuer_pic
*/
//30;
// $seite=16;
echo "SEITE : ".$seite."<br/>";
if(($seite%2) == 0)
{
$rand1 = $rand_aussen;
$rand2 = $rand_innen;
$rand1_fuer_pic = $rand_aussen_fuer_pic;
$rand2_fuer_pic = $rand_innen_fuer_pic;
}
else
{
$rand1 = $rand_innen;
$rand2 = $rand_aussen;
$rand1_fuer_pic = $rand_innen_fuer_pic;
$rand2_fuer_pic = $rand_aussen_fuer_pic;
}
// DAS PDF - DOKUMENT WIRD HIER VORBEREITET //
$pdf = new PDFLib();
$pdf->set_parameter("license", "xxxx");
if($pdf->begin_document("C:/xampp/htdocs/pdf/Seite_".$seite.".pdf","") == 0) {
?>;
<center>
<form action="index.php?seite=<?echo $seite;?>&background_name=$background_name" method="post"><input type="Submit" value="Zurueck"></form>
</center>
<?php
die (PDF_get_errmsg($p));
// die("<b>Konnte Die Datei nicht Anlegen!</b><br>Bitte Datei schließen, und Schreibrechte prüfen<br><br><br>");
}
// LADE DAS ICC - PROFIL //
$icchandle = $pdf->load_iccprofile("ISOwebcoated.icc",
"usage=iccbased");
$pdf->set_value("setcolor:iccprofilecmyk", $icchandle);
// iccbasedcmyk;
// ************************** //
$pdf->set_info("Creator", "Layout Maker V0.5");
$pdf->set_info("Author", "xxxxxx");
$pdf->set_info("Title", "Abramowicz Katalog - Seite ".$seite);
$pdf->set_info("subject", "Abramowicz Katalog - Seite ".$seite);
$pdf->begin_page_ext(651, 898,"");
$pdf->create_bookmark("Seite ".$seite, "");
$pdf->save();
$pdf->scale($scale_x, $scale_y);
$pdf->restore();
// HIER WIRD DIE DATENBANK VORBEREITET
include ("opendb.php");
$layout_tabelle = "layout";
$result = MySQL_QUERY("
SELECT ".$katalog."_temp_layout.id AS id,
".$katalog."_temp_layout.seite AS seite,
".$katalog."_temp_layout.abb AS abb,
produkte_pool_neu.Artnr AS artnr,
".$katalog."_temp_layout.links AS links,
".$katalog."_temp_layout.oben AS oben,
".$katalog."_temp_layout.KatBez AS text,
".$katalog."_temp_layout.text_field AS text_field
FROM ".$katalog."_temp_layout
INNER JOIN produkte_pool_neu ON ".$katalog."_temp_layout.artnr_id =
produkte_pool_neu.Artnr
WHERE ".$katalog."_temp_layout.seite = '$seite'
ORDER BY artnr_id DESC
") or die(mysql_error());