[Typo3-dev] ObTS at the tour

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Wed Dec 15 15:58:19 CET 2004


dan frost wrote:

> I'll try it out in ObTS and publish it if i can

Some loose ideas on the syntax:

pdf = PDF

  => $pdf = pdf_new();
  ...
  => pdf_close($pdf);

PDF.title
PDF.author
PDF.keywords
PDF.subject
PDF.creator
  => pdf_set_info($pdf, "Author", "Uwe Steinmann");

PDF.file
  => pdf_open_file($pdf, $file); // file write
  => pdf_open_file($pdf, ''); ... pdf_get_buffer(); // in memory

PDF.compress
  => pdf_set_value($pdf,'compress',1=fastest .. 9=smallest);

pdf.10 = PDF_PAGE
  => pdf_begin_page($pdf,595,842); // A4
  ...
  => pdf_end_page($pdf);

Standard TEXT and IMAGE objects won't work and have to be recreated, 
probably stdWrap as well.

Biggest problem I see is that pfdlib has a cursor concept and requires 
positioning. That doesn't fit nauturally to TS.

And all of the works have to be redone for the free pdflib clone :-(

Though instead of invoking the functions directly a base class could 
store them in variables (eg $open_file) and the children could set them 
accordingly. This might solve the problem.

Masi




More information about the TYPO3-dev mailing list