inserting images and inline style

107 views
Skip to first unread message

Sabyasachi Goswami

unread,
Dec 12, 2014, 11:57:01 PM12/12/14
to xhtm...@googlegroups.com
How will i be able to get inline style with the html tag into pdf as well as when i insert a image it gives me a error i have attached a image with this post
attribute_error.png

Didi Hoffmann

unread,
Dec 13, 2014, 4:36:33 AM12/13/14
to xhtm...@googlegroups.com
I am not quite sure if I understood the problem right, but that error
normally happens when it can't find the image or file. Please be aware
that sometimes upper/lower case makes a difference.
--------
Geerd-Dietger (Didi) Hoffmann | +49 (0) 171 8107605
www.ribalba.de | www.RebelProject.org | www.CigarCities.org | www.DBook.org
> --
> You received this message because you are subscribed to the Google Groups
> "Pisa XHTML2PDF Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to xhtml2pdf+...@googlegroups.com.
> To post to this group, send email to xhtm...@googlegroups.com.
> Visit this group at http://groups.google.com/group/xhtml2pdf.
> For more options, visit https://groups.google.com/d/optout.

Sabyasachi Goswami

unread,
Dec 15, 2014, 1:24:15 AM12/15/14
to xhtm...@googlegroups.com
hi Didi
I went through the code present on git, I found that images are takes from static path with file system. If i pass the path as url for example <img src ="http://kidakaka.com/blog/wp-content/uploads/2010/06/books.jpg"> will this work? As when i tried this it gave me the error i reported above. And kindly ignore the previous mail i have found the answer from exploring the code on git. I just need clarification on the image with src as url. thanks 

Didi Hoffmann

unread,
Dec 15, 2014, 6:32:51 AM12/15/14
to xhtm...@googlegroups.com
Hello

On Mon, Dec 15, 2014 at 6:24 AM, Sabyasachi Goswami <sab...@gmail.com> wrote:
> I went through the code present on git, I found that images are takes from
> static path with file system. If i pass the path as url for example <img src
> ="http://kidakaka.com/blog/wp-content/uploads/2010/06/books.jpg"> will this
> work? As when i tried this it gave me the error i reported above.

As you must have seen in the code we currently can not download images
from remote urls and pack them into the PDF.

Cheers Didi

Sabyasachi Goswami

unread,
Dec 18, 2014, 11:13:36 PM12/18/14
to xhtm...@googlegroups.com
hello didi

I solved the problem for images with url by downloading the image from code before adding it to the html and changing the src of the image. If you want me to incorporate the code with yours i can do so.

Thanks
Reply all
Reply to author
Forward
0 new messages