Tag Archives: html2pdf

  • HTML2PDF User manual - Development mode

    Posted on July 24, 2012 by ext4mage

    Development mode

    The HTML2PDF module has an inbuilt function to set it in development mode this is very useful when making a template. You set the module into development mode in system settings.

    Be aware that development mode affects the entire module, so it is not possible to print any PDF’s in this mode. Alternative you can also set the module to inactive, so Magento PDF’s are used, and then use the preview function in the template screen.

    When in development mode the code breaks, and prints the templates information and html directly to the screen. The first thing you see is a long list of text like the on below, it contains 2 types of print-out.

    • The first Variable in template is the variable function being performed, you can see the variable code and then the Magento code that is translated into, and finally the real value it produces.
    • Second is the inline code, here you see the code being processed after all variables have been translated into real values. The next line is the html code after the processing, this is the code that will be used in to PDF generator

    HTML2PDF User manual - development mode printout

    If it is still not showing in the PDF as in the development mode print-out, then check the html code to see if anything here is wrong

    Last in the print-out the header, main and footer text is printed out in html. This is the final html code that is being sent to the PDF generator.

    HTML2PDF User manual - development mode printout all

    If everything is looking fine in the development print-out, but not showing up in the PDF then check the html is well-formatted. Even if you are missing an end </b> can break the PDF generator.

     
     
     

    The HTML2PDF extension for Magento
    See more about the magento extension HTML2PDF


    This post was posted in Manual and was tagged with html2pdf, magento, pdf, pdf layout, manual, debugging

  • HTML2PDF User manual - Index / Intro

    Posted on July 24, 2012 by ext4mage

    Content

     
     

    Intro
    The HTML2PDF module from ext4mage.com will help you make Magento PDF print’s with ease. It is now possible to make Magento PDF’s with a WYSIWYG editor, as you know it from the CMS pages of Magento.
    It also brings you the possibility to setup different PDF’s for you stores and languages. Still with a maximum of reuse.

    This document is a guide to teach you how to use the HTML2PDF module. For installation instructions please see the installation manual. This manual is designed to explain every step of the module, and give an understanding of the different elements and fields used in HTML2PDF module.

    Throughout the manual you will see two types of text elements.

    This type of text will have some tips & tricks to the current subject. Read them, because they will contain information that will save you many hours.

    In these text format code examples and formatting are written.
     
     

    The HTML2PDF extension for Magento
    See more about the magento extension HTML2PDF


    This post was posted in Manual and was tagged with html2pdf, magento, pdf, print pdf, manual

  • Add a due date on the invoice pdf

    Posted on May 23, 2012 by ext4mage

    Want to add a date that is x days from invoice date to the invoice PDF

    If you have a need to print a date to your invoice, order, shipping or creditmememo PDF, that is based on a variable date and then x days in the future. This is then a solution to do this in the HTML2PDF module text element.

    Example:
    Due date (invoice date + 14 days) - you can do this like this (formatted with data medium - look in help->formatting)

    ##format_date_medium date( 'Y-m-d H:i:s' , strtotime ( '+14 day' , strtotime ('{{invoice_data_created_at}}')))##
     
     

    Related product:
      HTML2PDF extension


    This post was posted in Guides and was tagged with html2pdf, magento, design, pdf layout

  • Order PDF error when preview

    Posted on May 23, 2012 by ext4mage

    When pressing preview of a order PDF template gives error

    Problem:
    Error is thrown when trying to preview a HTML2PDF order template, with the error code: Fatal error: Call to a member function children() on a non-object in app/code/community/Ext4mage/Html2pdf/Model/Order/Pdf/Abstract.php on line 47

    Solution:
    Upgrade HTML2PDF to the latest version - this is now handled within the extension.

    Related product:
      HTML2PDF extension


    This post was posted in FAQ and was tagged with html2pdf, magento, pdf, order, print

  • Mass print action of PDF's

    Posted on May 23, 2012 by ext4mage

    Using the mass action print Invoice, shipping or creditmemo gives error.

    Problem:
    When trying to do the mass print action on the order grid screen, an error is thrown.
    Error text: Page is attached to other documen. Use clone $page to get it context free.

    Solution:
    The most common reason for this, is that another 3. party module is extending the Mage_Adminhtml_Sales_OrderController and therefor the HTML2PDF module is not being run here.

    So find the 3. party extension that also extends Mage_Adminhtml_Sales_OrderController, and add the code found in the file app/code/community/Ext4mage/Html2pdf/controllers/Admin/OrderController.php

    Related product:
      HTML2PDF extension


    This post was posted in FAQ and was tagged with html2pdf, invoice, magento, print pdf

  • HTML2PDF PDF not being shown

    Posted on May 23, 2012 by ext4mage

    Old style Magento PDF is shown not the HTML2PDF template.

    Problem:
    When pressing print in invoice, order, shipping or creditmememo the old Magento style PDF is shown, not the HTML2PDF template PDF.

    Solution:
    The most common reason for this error, is that another extension is installed that also tries to handle the PDF layout. So check if you have any other 3. party modules installed that has something to do with PDF layout. Then try to deactivate them in System->Configuration->Advanced or by going into app/etc/modules and change the 3 party module xml, so it says <active>false</active>.

    Alternative it can also be that the module is not activated. Go into System->Configuration-> Ext4mage->Html2pdf and activate the module if it is not active.

    Know 3. party modules to give problems:

    • MagentoPycho_PdfInvoice

    Related product:
      HTML2PDF extension


    This post was posted in FAQ and was tagged with html2pdf, invoice, magento, print pdf

  • Print PDF error - Unable to get image:

    Posted on May 23, 2012 by ext4mage

    When trying to preview a template or pressing print on invoice, shipping or creditmemo only get error - Unable to get image:

    Problem:
    When pressing either preview or print of any of the PDF the pdf is not shown and one of the following kind of error text shows:
    TCPDF ERROR: [Image] Unable to get image: /media/wysiwyg/xxx.jpg
    Unable to get image: /var/html2pdf/cache/*

    Solution
    There can be a couple of different reason for this error - try going trough these solution

    • The compleate Magento application is protected by .htaccess
    • The folder /var/html2pdf do not have the right permissions, should be same as rest of /var/ folder (properly 755 or 777) - also subfolders shall have these permissions

    You can also try deleting everything in the folder /var/html2pdf/cache/

    Related product:
      HTML2PDF extension


    This post was posted in FAQ and was tagged with html2pdf, invoice, magento, pdf

  • Error in HTML2PDF help screen

    Posted on May 23, 2012 by ext4mage

    Issue with showing the help pages of the HTML2PDF module.

    The help pages will give you a list of all variables, that can be used in the HTML2PDF extension. The page contains different tabs with variables related to the order, invoice, creditmemo, shipping, cross-sell and so on.

    If you see an error on this page - like the one below - the first thing to check is in the configuration. So go to System->Configuration->Ext4mage->Html2pdf and fill in the information here. The different id's that has to be filled, shall be real id's of order, invoice, product in the invoice, shipping and creditmemo.

    Error text seen on this issue:
    Fatal error: Call to a member function getMethodInstance() on a non-object in /app/code/core/Mage/Payment/Helper/Data.php

    Text on help page when not filled correctly:
    order_data_?  Selected order not present

    Related product:
      HTML2PDF extension


    This post was posted in FAQ and was tagged with html2pdf, magento, help page

Items 11 to 18 of 18 total

Page:
  1. 1
  2. 2