简体   繁体   English

使用itext生成pdf的公开对话问题

[英]Open dialogue issue with pdf generation using itext

I am using iText to generation in my java application. 我正在使用iText在Java应用程序中生成。 I am able to open the pdf in web page but with the https setting the open dialogue is not working. 我可以在网页中打开pdf,但是使用https设置时,打开对话框不起作用。 First it is asking to save and then open dialogue is showing whereas without https the page is directly opening in browser without any dialogue. 首先它要求保存,然后显示打开对话框,而没有https的页面将直接在浏览器中打开而没有任何对话框。 I am using spring and itext. 我正在使用spring和itext。
I want to open the pdf in web browser without any dialogue using https. 我想在Web浏览器中打开pdf,而无需使用https进行任何对话。

It likely is not a Java issue at all, but rather a browser issue. 它可能根本不是Java问题,而是浏览器问题。 So, for instance, knowing which browser you are testing with would make a tremendous amount of difference here. 因此,例如,知道要使用哪个浏览器进行测试将在这里产生巨大的不同。

That being said, the accepted answer here may just be what you are looking for to get the pdf to display directly when using https. 话虽这么说, 这里接受的答案可能只是您要获取的PDF,以便在使用https时直接显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM