Blog Post RSS ?

Blogs » PHP » PDML: Portable Document Markup Language
 

PDML: Portable Document Markup Language


  • Save to
    Del.icio.us

by Harry Fuecks

Via Håvard Eide, who has a talent for getting the scoop on what’s new in PHP, (his PHP5 tutorial was the first online publication to take a close look at PHP5s new syntax): PDML: Portable Document Markup Language.

As it says on the cover;

PDML is an informal markup language written in 100% PHP, allowing to create complex PDF documents very easily for people already familiar with HTML. People familiar with PHP can also use it as a way to define templates for dynamic PDF documents.

A very cool idea and great to see effort going into this kind of project in PHP.

There’s a longer blog related to this subject, which is slowly brewing. When it comes to documents, have a hunch there’s too much emphasis on specific markups (e.g. docbook, html, rtf or whatever). Instead, by identifying the common “human intent” behind document markup, think it’s possible to define a set of “rules” which could be used as the basic of a framework that’s capable of transforming documents of any format to documents of any format (given parsers / generators).

Many of the basic rules have already been “captured” by PEAR::Text_Wiki. Might even work nicely with the filters Håvard commented on here.

Anyway - more some other time.

Sponsored Links

Leave a response

You are not logged in, log in with your SitePoint Forum username and password.

-OR- Post Anonymously

* Make sure any code samples are escaped (i.e. ‘<b>’ becomes ‘&lt;b&gt;’).

If not logged in, your comments will be placed in a moderation queue. This means your comment may not appear until one of our moderators approves it.

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Logo Design, Web page Design and more!

99designs

  • Custom logo designs created ‘just for you’.
  • Pick the design you like best.
  • Only pay if you’re satisfied with the result.

It's Back!
FREE PDF with any printed book!