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/
raufaser
Member
Posted 3 years ago #
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
Member
Posted 3 years ago #
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