PHP Developers Generate PDF, DOCX, DOC and RTF With phpLiveDocx

Traditionally, the generation of professional looking PDF files with PHP has been a tricky programming task, even though a number of existing PHP libraries are available. Using those libraries, developers can convert HTML documents to PDF or programmatically generate PDFs from scratch.

Business documents created using HTML are limited by the capabilities of HTML, and it is extremely tedious, sometimes impossible, to get the layout of documents just right, using direct PDF generation.

With phpLiveDocx, both of these problems are addressed. Templates, created in a WYSIWYG environment, such as a standard word processor, are populated with structured data from PHP. The resulting document can be saved as a PDF, DOCX, DOC or RTF file, much like mail merge.

Three basic concepts:

  • Separate template and programming logic
  • Populate templates by assigning values
  • Uses standard SOAP web service
  • This simple and standard interface has major benefits to an enterprise. With separate template and programming logic, a graphic designer can produce the template, and a developer can populate it. Changes to the layout of a template can be made with no changes to the programming logic.

    Using phpLiveDocx, populating a template is simply a matter of assigning a value to a text field. When PDF templates are to be populated using existing solutions, the x and y coordinates of the position at which text should inserted must be specified. It is very time-consuming to calculate these coordinates and in some cases, not possible at all.

    phpLiveDocx is the PHP5 implementation of the SOAP web service LiveDocx. Existing standard software is used on the server, in order to use phpLiveDocx. The complex word processing and mail-merge processes take place on the backend platform. This lowers maintenance costs, and reduces hardware requirements of the client web server.

    phpLiveDocx has been written to fit the architecture of the Zend Framework and follows its extreme simplicity philosophy.

    Documentation and runnable sample phpLiveDocx applications are available. [ Brief introduction to phpLiveDocx ]

    Contact: Jonathan Maron

    www.phplivedocx.org/contact/

    Hot this week

    Did David Wineland and Serge Haroche Steal Idea For The Nobel Physics Prize?

    Dr. Omerbashich says the Royal Swedish Academy is a Crime Scene and he has the proof that Nobel laureates stole his discovery.

    New Approaches to Disaster Relief Challenges

    Disaster relief has always been a challenge. NASA, Google,...

    3 Legitimate Money Making Methods to Supplement Your Income

    In a perfect world, when your landlord raises your...

    2016 Predictions by World Renowned Medium and Psychic Lindy Baker

    World renowned medium and psychic Lindy Baker is interviewed by The Hollywood Sentinel, discussing psychic power, the spirit world, life after death, areas of concern in 2016, and much more.

    Digital Coupon Customers Spending More Than Double At Stores

    A new study shows that customers who use digital coupons go shopping more for groceries and other household goods more often and spend more on their shopping trips.

    The Cheapest Research Material Can Become the Most Expensive Purchase: How Missing Laboratory Documentation Creates Hidden Costs for Biotechnology Businesses

    For a biotechnology business operating on a limited research budget, purchasing laboratory materials at a lower price can appear to be an obvious financial advantage. Procurement teams compare quotations, negotiate delivery arrangements and

    The Sidewalk Robot Clipped a Pedestrian. Who’s on the Hook?

    A six-wheeled delivery robot rolls along a busy sidewalk, carrying someone's lunch to an office a few blocks away. It approaches a coffee shop, turns unexpectedly, and collides with a pedestrian stepping outside. The person is injured, the

    Handling a Relative’s Crypto Offers Carefully

    An email arrives promising a quick return on a...

    Why Biotechnology Laboratories Are Rethinking Inventory Management: The Hidden Business Risks of Losing Track of Research Materials

    A biotechnology laboratory discovers that a research project has been delayed because an important chemical material cannot be matched to its original inventory record. The material appears to be available, but its batch history is incomple

    The Upjohn Warning the Employee Heard and Immediately Forgot

    The meeting looks routine. An employee sits down with the company's outside lawyer to discuss a transaction, an expense report, or a client account. The attorney asks questions, takes notes, and explains that the conversation is privileged.

    French Onion Latkes Put A Delicious New Spin On A Chanukah Classic

    When it comes to comfort food, few dishes manage...

    Sunday Morning Breakfast Traditions

    Sunday morning has a rhythm all its own. The...

    From Insulin to Incretin Research: How a Century of Peptide Science Has Reshaped the Biotechnology Industry

    In the early twentieth century, researchers investigating the relationship between the pancreas and diabetes helped establish one of the most consequential developments in modern biomedical science. Their discoveries contributed to the deve

    Related Articles

    Popular Categories