• 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="" />
    </pre>

    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).

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Marc

    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!

    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.

    @dhvrm:
    In the new version 0.20 available since yesterday the html tags “code” and “pre” are now interprated by the pdf parser.

    Marc

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: article2pdf] Incompatablity with wp-syntax’ is closed to new replies.