Title: [Plugin: article2pdf] Incompatablity with wp-syntax
Last modified: August 19, 2016

---

# [Plugin: article2pdf] Incompatablity with wp-syntax

 *  [dhvrm](https://wordpress.org/support/users/dhvrm/)
 * (@dhvrm)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-article2pdf-incompatablity-with-wp-syntax/)
 * 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)

 *  [raufaser](https://wordpress.org/support/users/raufaser/)
 * (@raufaser)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-article2pdf-incompatablity-with-wp-syntax/#post-955006)
 * 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
 *  [nkuttler](https://wordpress.org/support/users/nkuttler/)
 * (@nkuttler)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-article2pdf-incompatablity-with-wp-syntax/#post-955062)
 * 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!
 *  [raufaser](https://wordpress.org/support/users/raufaser/)
 * (@raufaser)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-article2pdf-incompatablity-with-wp-syntax/#post-955068)
 * 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.
 *  [raufaser](https://wordpress.org/support/users/raufaser/)
 * (@raufaser)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-article2pdf-incompatablity-with-wp-syntax/#post-955105)
 * [@dhvrm](https://wordpress.org/support/users/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.

 * 4 replies
 * 3 participants
 * Last reply from: [raufaser](https://wordpress.org/support/users/raufaser/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-article2pdf-incompatablity-with-wp-syntax/#post-955105)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
