Title: [Plugin: article2pdf] Gallery tag adds CSS code to PDF
Last modified: August 19, 2016

---

# [Plugin: article2pdf] Gallery tag adds CSS code to PDF

 *  [the_dead_one](https://wordpress.org/support/users/the_dead_one/)
 * (@the_dead_one)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-article2pdf-gallery-tag-adds-css-code-to-pdf/)
 * I’m just trying this plugin and out and it looks quite cool. However I found 
   that it does something funny with the gallery tag? If I generate a pdf from a
   post with a gallery of images, it’ll insert:
 *     ```
       .gallery {
       margin: auto;
       }
       .gallery-item {
       float: left;
       margin-top: 10px;
       text-align: center;
       width: 33%;			}
       .gallery img {
       border: 2px solid #cfcfcf;
       }
       .gallery-caption {
       margin-left: 0;
       }
       ```
   
 * … just before the images.
 * Also, is there a way to get the generated pdf to respect the alignments set on
   images, i.e. centre, left, right, etc.?
 * [http://wordpress.org/extend/plugins/article2pdf/](http://wordpress.org/extend/plugins/article2pdf/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [raufaser](https://wordpress.org/support/users/raufaser/)
 * (@raufaser)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-article2pdf-gallery-tag-adds-css-code-to-pdf/#post-989940)
 * Hm, my NGG plugin doesn’t do that, but it’s no problem. I will add a filter to
   the article2pdf plugin that removes inline css from the posts. I will release
   the update in a few days. Thanks for your bug report! 🙂
 * To your feature request:
    Parsing style/css/tag arguments like align, margin,
   color, etc pp is very heavy. Maybe some simple arguments like color or something
   can be done, but image alignment is a little bit to hard, because with the FPDF
   library you can’t simple say “place that image left” – I would have to code it
   by myself.
 * Marc
 *  [raufaser](https://wordpress.org/support/users/raufaser/)
 * (@raufaser)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-article2pdf-gallery-tag-adds-css-code-to-pdf/#post-990095)
 * Okay, here is the new release version 0.25 – style tags now get removed and the
   tmp dir is now configurable, because some users had problems.
 * Have fun and please keep on reporting bugs and feature requests!
 * Marc

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: article2pdf] Gallery tag adds CSS code to PDF’ is closed to 
new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [raufaser](https://wordpress.org/support/users/raufaser/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-article2pdf-gallery-tag-adds-css-code-to-pdf/#post-990095)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
