[Plugin: article2pdf] Incompatablity with wp-syntax (5 posts)

  1. dhvrm
    Posted 6 years ago #

    There's an incompatibility issue with article2pdf and WP-Syntax.

    If you include an HTML img tag in a WP-Syntax pre block, article2pdf will try to include that image in its output -- but if the image doesn't actually exist on your server, that will cause errors.

    For example, if you have this WP-Syntax code in a post:

    <pre lang="xml">
    <img src="1.jpg" alt="" />

    article2pdf will throw an error, because there is no 1.jpg located at the same directory level as the permalink / URL of the page.

    I don't want to branch this code without the author's permission so I am not going to provide a workaround. If you disable the display of images in the settings for article2pdf, this problem will not happen (but, of course, correct images in your posts won't show up, either).

  2. raufaser
    Posted 6 years ago #

    Hi dhvrm,
    that's not a big Problem. I will add some parsers for the pre and code elements and the image inside will be displayed as source code.

    Thanks for your report.


  3. nkuttler
    Posted 6 years ago #

    I have a related feature request, maybe you could use a monospace font (maybe slightly smaller - config option?). I guess I'll dig through the code tomorrow.
    HTML forms don't seem to be displayed at all (no biggie).
    Great Plugin!

  4. raufaser
    Posted 6 years ago #

    Hi nkuttler,
    the font size and the used font can be set in the options of the plugin. Have a look into the directory "/wp-content/plugins/article2pdf/contributed/pdffonts". There you will find the available fonts. I'll try to add some free fonts in a future release and a font selection field repleacing the text input field.

    HTML Forms are skipped because PDF Forms are not supported by the FPDF library.

  5. raufaser
    Posted 6 years ago #

    In the new version 0.20 available since yesterday the html tags "code" and "pre" are now interprated by the pdf parser.


Topic Closed

This topic has been closed to new replies.

About this Topic