flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

com.openhtmltopdf.util.JDKXRLogger log Server returned HTTP response code:

Open NewWorldNewCode opened this issue 5 years ago • 2 comments

hello, sorry to bother you. when I convert md to pdf by PdfConverter.java ,it mentions: com.openhtmltopdf.util.JDKXRLogger log 警告:IO prolem for http://.......and the pdf result does not contains the picture. my server mentions:"用户未登录,请登录", bug I have logined in。 could you help me? thanks.

NewWorldNewCode avatar Apr 27 '20 14:04 NewWorldNewCode

The site for your images requires a user login. I do not know if it is possible to provide the HtmlToPDF library with user credentials so the images can be accessible.

When you say you are logged in you mean the java application? I don't think the PDF conversion library is using the same session.

vsch avatar Apr 27 '20 17:04 vsch

The site for your images requires a user login. I do not know if it is possible to provide the HtmlToPDF library with user credentials so the images can be accessible.

When you say you are logged in you mean the java application? I don't think the PDF conversion library is using the same session.

I convert md to html and then convert html to pdf. I tried in this way: I upload the picture and text in website,and I export the content to pdf in the website. Then the text can show normally,but the picture show null in pdf. I login the website,but when I convert the picture content, it mentions I login overtime. So can you help me what should Ido?

NewWorldNewCode avatar Apr 28 '20 00:04 NewWorldNewCode