Skip to end of metadata
Go to start of metadata

<ul>
<li>Implement most requested drawing features
<ul>
<li>Text flow processing:
<ul>
<li>text (rich text) wrapping (with different wrapping modes: justified, left, right, center).
<ul>
<li>Allow to specify both vertical as well as horizontal spacing</li>
</ul>
</li>
<li>canvases support (canvases represent drawing area abstraction directly supported by PDF format, so canvases must provide full set of drawing operations; already prepared canvas may be dropped into specified page or pages or into another canvas at specified place).</li>
<li>using canvases as an output of rich text drawing operation (text and canvases characteristics are specified as an input, required number of canvases with drawn text are returned; number of canvases in the returned set is defined by text wrapping).</li>
<li>template based pages generation: should be alternative method for the "using canvases as an output of rich text drawing" functionality. One or more pages are specified as an additional input and used as templates, set of pages is returned.</li>
</ul>
</li>
<li>Rich text processing
<ul>
<li>Text attributes processing (style, size, font, color, ...).</li>
<li>Paragraphs processing.</li>
<li>Lists processing.</li>
<li>Tables processing</li>
<li>Process some markup language (wiki markup language is probably the best candidate) and Zend\Markup.</li>
</ul>
</li>
<li>Copying pages between documents functionality (an ability to use several PDF documents as templates).</li>
<li>Charts drawing using Zend\Chart (that's probably post-2.0 task).</li>
<li>Forms processing; PDF format allows to process forms as internal PDF objects, it gives possibility to split presentation and data processing functionality (e.g. design pdf page with forms in PDF editor then provide actual field values by PHP script or prepare page/form design in PHP and send document to user for adding actual information).</li>
<li>Allow to subset fonts</li>
</ul>
</li>
<li>Improve internal Zend_Pdf architecture.
<ul>
<li>Prepare a set of tests which allow to test performance, memory usage and check "document quality" characteristics of prepared documents and make a basis for Zend_Pdf vs other PHP based PDF processing solutions comparison. It should also help to make architectural decisions while Zend_Pdf development and completely show Zend_Pdf functionality
<ul>
<li>Type of documents ("common use cases"):
<ul>
<li>notification - generate new 2 pages documents using some drawing small images and standard fonts or ttf fonts (ttf fonts are embedded into document);</li>
<li>invoice - load already prepared document and add some text information into it;</li>
<li>booklet - prepare new 10 pages document using standard templates for pages (2 type of pages)</li>
<li>book printing - print 200 pages of text information with some images included.</li>
<li>book processing - modify book printed with previous test (two tests: a) modify several pages b) modify most of pages)</li>
<li>test of processing heavy documents which demonstrate correct loading most of PDF format features (use PDF Reference document as an example for test (~1000 pages doc))</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jul 01, 2010

    <p>Hi Alexander Veremyev,</p>

    <p>currently Zend\Pdf (Zend_Pdf) is missing a great feature: forms.<br />
    It should be possible to add a form to an existing pdf file, create a pdf with an included form and fill form fields.<br />
    Filling formular fields is a great feature because some companies have already designed their pdf files and only want to fill them automatically. (e.g. an invoice formular)</p>

    <p>I think about a class name like Zend\Pdf\Form which can be used to do all these things.</p>

    <p>regards<br />
    René</p>

    1. Jul 01, 2010

      <p>Good point! Just added it.</p>

  2. Jul 02, 2010

    <p>Hi Alexander,</p>

    <p>Any plan to add support for labels? I mean, print text in columns that flows left-right then down or top-down and then right.</p>

    <p>Thanks<br />
    Jorge Padrón</p>

    1. Jul 02, 2010

      <p>Hi Jorge,</p>

      <p>Thanks for your comment!<br />
      There was no plans to add such functionality as "2.0 required" feature. It may be something for ZF 2.x, but if it gets enough votes for inclusion into 2.0 it'll be included.</p>

      <p>BTW Could you give an example (PDF doc) to demonstrate what you mean?</p>

      <p>Best regards,<br />
      Alexander Veremyev.</p>

      1. Jul 02, 2010

        <p>Hi Alexander,</p>

        <p>Thanks for reading my suggestion. Here you're the labels' sample (sent to your mail). </p>

        <p>I mean that every label behave like a "little page" inside the normal page. You can select, at print time, if you want to display each label from top to bottom and then right or if you prefer to display them from left to right and then, when it reachs the right side, to next available place (just botoom near current line).</p>

        1. Jul 02, 2010

          <p>Got the email with example.</p>

          <p>That's exact what should be covered by canvases support. Print into some virtual rectangle area, then put it into page (pages) as much times as we need.</p>

          <p>Nevertheless, some special API may be used to do this automatically over canvases processing. You are welcome to offer such API <ac:emoticon ac:name="smile" /><br />
          But we also have to care about overall Zend\PDF API complexity. We should think twice before adding new entities into it.</p>

          1. Jul 02, 2010

            <p>Oks, I understand which are the priorities. Anyway, perhaps, you find this useful:</p>

            <p><a href="http://www.fpdf.org/fr/script/script29.php">FPDF logic to draw labels</a></p>

            <p>Regards and keep up the good work.<br />
            Jorge</p>

  3. Jul 08, 2010

    <p>I would like to see support for sub-setting fonts into PDF's. Adding some Japanese characters or anything UTF8 makes the PDF size massive. Sub-setting would allow only the glyphs used to be added. </p>

  4. Jul 10, 2010

    <p>How about supporting?</p>

    <ul>
    <li>Drawing tables with good cell API and word wrapping</li>
    <li>Support for PNG images</li>
    </ul>

  5. Jul 11, 2010

    <p>I don't know if this was already mentioned, but I would suggest multi-column text support with automatic page breaks.</p>

  6. Nov 09, 2011

    <p>The most problem of all PDF creators is i18n. For arabic and persian languages we need two feature.</p>
    <ul>
    <li>Right to left (<a class="external-link" href="http://en.wikipedia.org/wiki/Right-to-left">http://en.wikipedia.org/wiki/Right-to-left</a>)
    <ul>
    <li>"سلام بر شما ای دوستان." <span style="color: red;">Dot character must be the left position of sentence. This page is Left to right also in PDF.</span></li>
    </ul>
    </li>
    <li>Joined characters
    <ul>
    <li>"سلام" <span style="color: green;">correct</span></li>
    <li>"س‌ل‌ا‌م" <span style="color: red;">wrong</span></li>
    </ul>
    </li>
    </ul>

    <p>This two may help Zend i18n more feature. Thanks.<br />
    Useful : <a class="external-link" href="http://www.tcpdf.org/">http://www.tcpdf.org/</a><br />
    Persian and Arabic language on RTL document in TCPDF:
    <a class="external-link" href="http://www.tcpdf.org/examples/example_018.pdf">http://www.tcpdf.org/examples/example_018.pdf</a></p>