콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
7 답글
24577 화면

hello,

I am working on several projects. My all projects are loading images on HTML and PDF versions of report. Only one project is not showing its images on PDF version. When i open the report it shows the logo on top but when PDF is generated it doesn't loads the image but showing value given in alt attribute. I am surfing internet for long time have tried a lot of solutions but nothings working. Is it some problem with WKHTMLtoPDF plugin intall on that server or some thing else.


I am using image as HTML tag not as background in odoo 10

아바타
취소

you probably have path issue with your image.

if image show in other reports in well manner..then it's image size or image related prlbm..

베스트 답변

 I have also encountered this issue. An image in a report appearing perfectly fine in my html but not as a pdf.I found that it  turned out to be internal vs external name resolution. Adding http://0.0.0.0:8069 to web.base.url did in fact get my default logo to appear which gave me a clue that I was experiencing a name resolution issue. Be sure that your odoo server can in fact resolve it's external url and find itself or wkhtmltopdf will have issues fetching resources beyond the html passed to it by

https://www.odoo.com/forum/help-1/question/problem-with-qweb-reports-rendering-to-pdf-html-version-ok-68445

아바타
취소
작성자

exactly it solved my issue.

작성자

Thanks Ahtesham bhai to help me here on odoo help instead of telling me directly while siting next to me....lol

I recently suffered this same issue on a system on different server than the NGINX reverse proxy that handles the web.base.url. To correct it, I had to add the report.url field in the system parameters with the http://127.0.0.1:<<xml-rpc port>>. Once it was in the system, everything worked well again.

Great. It worked. Thanks

베스트 답변

I had this issue with my installation on openSuSE Leap 42.3 which has an un-patched verison of  wkhtmltopdf. Installing the the patched packages solved my problem.

You can get the patched packages from:

http://am4computers.com/wordpress/archives/499

아바타
취소
관련 게시물 답글 화면 활동
0
9월 18
4274
0
7월 17
3712
2
9월 24
2059
3
9월 23
21261
1
3월 21
5063