#70 PDF Classes

XOOPS_2.2
open
Core (214)
6
2012-09-25
2004-05-13
No

I would like us to include Cpdf classes for PDF making.
With a little extra class, we could have a generic
content PDF maker.
This would make it easy for module writers to make PDF
pages (instead of printer-friendly pages, then "this
item as PDF")

I am thinking in two ways here:
1) A generic class for content (takes parameters like
title, author, date and content)
2) A range of classes similar to XoopsForm (classes
like pdfImage, pdfHorisontalLine, pdfTable) for
developers to "compose" their own PDF file

Discussion

  • Jan Pedersen

    Jan Pedersen - 2004-05-13

    Logged In: YES
    user_id=841117

    OK, I'll take care of this one personally.

     
  • Brian Wahoff

    Brian Wahoff - 2004-05-19

    Logged In: YES
    user_id=678143

    have you seen PDML? It
    is a php class that allows you to create a pdf document
    using html like syntax. Potentially this would allow us to
    create a PDF document using a templating engine such as smarty.

     
  • Brian Wahoff

    Brian Wahoff - 2004-05-19

    Logged In: YES
    user_id=678143

    sorry thought that HTML links would work. The correct PDML
    link is: http://pdml.sourceforge.net/index.php

     
  • Jan Pedersen

    Jan Pedersen - 2004-05-19

    Logged In: YES
    user_id=841117

    This is absolutely fabulous.

    If only it could convert table layouts to PDF, we can truly
    have that "any page you see can be a PDF document"
    functionality, I would like.

    I know they can do something with columns and cells, but it
    seems not to be all that interchangeable with a table.

    Awesome.

    Now all they need to do is get the examples to work - they
    didn't just now

    Correction: Yes they did - but only in Internet Explorer...
    weird

     
  • Skalpa Keo

    Skalpa Keo - 2004-05-19

    Logged In: YES
    user_id=882380

    Mith: not too quick on that one ;-). I want to make this
    possible in the Xoops 2.2 output layer (so one theme can
    actually generate PDF content using a PDF renderer class),
    so the status is set to Accepted and the group to 2.2, but
    this should be integrated into the new theme / output system
    and discussed in the forums.
    However, until we're ready for this you can still check the
    pdml site (btw thanks a lot Brian, I didn't know of this and
    was looking for such a framework to allow us to keep using
    templates-based logic to generate PDFs), I will too.

     

Log in to post a comment.