Forum Replies Created
- 
		AuthorPosts
- 
		
			
				
in reply to: relative URL to a servlet in the “img”-tag throws a MalformedURLException August 23, 2023 at 17:46#36925Thank you very much for your answer. I have moved the pd4ml-4.0.16.jar from the application/lib directory to the WEB-INF/lib. 
 Unfortunately the result is the same! The same exception again and again:java.net.MalformedURLException: SRVE0238E: Resource paths must contain a preceding slash. 
 at com.ibm.ws.webcontainer.webapp.WebApp.getResource(WebApp.java:2453)
 at com.ibm.ws.webcontainer.webapp.WebApp.getResourceAsStream(WebApp.java:2419)
 at com.pd4ml.cache.ServletResourceProvider.getResourceAsStream(y:1928)
 at com.pd4ml.ResourceProvider.getResourceAsBytes(y:2080)in reply to: Technical questions / Troubleshooting August 29, 2023 at 18:33#37049Hi, We encountered an issue while generating a PDF from an HTML with big headers/footers. If there is no enough space on the page for displaying them, the PDF generation stucks and the process never ends. Could you please investigate ? Attachments:You must be logged in to view attached files.in reply to: Technical questions / Troubleshooting September 6, 2023 at 06:35in reply to: Attachments in Evaluation Mode September 6, 2023 at 11:53#37086Hi! Is it reproducible only in a particular Web browser or it appears like that also in Acrobat Reader? 
 Could you please share with us a minimalistic PDF sample to illustrate the issue?in reply to: Attachments in Evaluation Mode September 6, 2023 at 13:31#37087Hi, attached is a sample, the attachment only opens in Acrobat Reader; It is not in Edge, Chrome and Safari don’t. This is how I attached the file, it’s straight from the example from the pd4ml documentation. 
 pd4ml.injectHtml(“”
 + “<pd4ml:attachment style=\”align: right\” type=\”paperclip\” description=\”test-image.jpg\” src=\”c:\\temp\\test-image.jpg\”/>”
 + ““, false); Is there a way to make this work in web browsers? 
 Thanks
 BerndAttachments:You must be logged in to view attached files.in reply to: Attachments in Evaluation Mode September 7, 2023 at 01:53#37089This is the full code used for above pdf: PD4ML pd4ml = new PD4ML(); 
 pd4ml.applyLicense(“xxxxx”);
 pd4ml.setAuthorName(“yyyyy”);
 pd4ml.setDocumentTitle(“zzzzz”);
 pd4ml.enableHyperlinks(false);
 pd4ml.setHtmlWidth(1000);
 //authenticate
 pd4ml.setHttpOptions(null,”user:pwd”);// add attachments 
 pd4ml.injectHtml(“”
 + “<pd4ml:attachment style=\”align: right\” type=\”paperclip\” description=\”test-image.jpg\” src=\”c:\\temp\\test-image.jpg\”/>”
 + ““, false); 
 // get html
 pd4ml.readHTML(new URL(“https:aaaaaaaaaaaaaaaa/02E1B2F?OpenDocument”));
 // write pdf
 File pdf = new File(“c:\\temp\\000018.pdf”);
 FileOutputStream fos = new FileOutputStream(pdf);
 // render and write the result as PDF
 pd4ml.writePDF(fos);in reply to: Attachments in Evaluation Mode September 8, 2023 at 11:43#37103We need time to investigate. A few years ago, built-in PDF viewers in web browsers did not support PDF annotations at all (technically, a PDF attachment is a type of PDF annotation). There is partial support now, but it appears that Acroread is still the only reliable way to work with PDF attachments. in reply to: Attachments in Evaluation Mode September 8, 2023 at 15:08#37104Thanks, that’s alright, no pressure. 
 We have a workaround and will not include attachments for now, but it would be great if attachments work in web browsers.Thanks 
 Berndin reply to: Technical questions / Troubleshooting September 12, 2023 at 17:56#37107Hi, I have this code: public static void main(String[] args) throws Exception { PD4ML pd4ml = new PD4ML(); pd4ml.applyLicense("license......"); pd4ml.setHtmlWidth(300); pd4ml.useTTF("src/main/resources/fonts"); String html = Files.readString(Paths.get("src/main/resources/sblend.html")); ByteArrayInputStream bais = new ByteArrayInputStream(html.getBytes("UTF-8")); pd4ml.readHTML(bais, null, "utf-8"); File pdf = File.createTempFile("result", ".pdf"); FileOutputStream fos = new FileOutputStream(pdf); pd4ml.writePDF(fos); Desktop.getDesktop().open(pdf); }This code refers to this HTML file: 
 <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> Ciao perché cioè 笔记本/筆記本 ерберта Уэллса, часто именуемое романом. Публиковалось с продолжением в 1904—1905 годах; книжное изда </body> </html>If you open it through a browser, you see (see attachment 1: browser.png). If you open it through PD4ML, you see (see attachment 2: pd4ml.pdf) So: the characters which are cyrillic or chinese are all rendered as question marks (“?”). How can we solve the problem? Attachments:You must be logged in to view attached files.in reply to: UTF-8 support missing in PD4ML v4.0.17 September 12, 2023 at 19:30#37110The attached PDF is a typical result of PDF conversion, when no TTF embedding feature configured. Did you have a chance to take a look at 
 ?in reply to: Technical questions / Troubleshooting September 30, 2023 at 08:45#37197Facebook 24/7 customer service is a crucial aspect of the platform that ensures user satisfaction and support. The availability of round-the-clock assistance allows users to seek immediate help and resolve any issues they may encounter while using Facebook. This service provides a convenient and efficient way for users to get in touch with customer support representatives who can offer solutions and address their concerns promptly. By offering 24/7 customer service, Facebook demonstrates its commitment to providing a positive user experience and maintaining a high level of customer satisfaction. in reply to: Tomcat 10 Jakarta Multithread problem October 4, 2023 at 21:45#37202Please! We are still waiting for a solution, at least a response. Since 08/15 we don’t hear anything from you. This problem is hitting us in production environment. in reply to: Tomcat 10 Jakarta Multithread problem October 4, 2023 at 22:32#37203Sorry for the silence! We’ll provide you with an update at latest on Monday in reply to: PD4ML PRO site license October 10, 2023 at 13:51#37246I appreciate your quick responses. in reply to: Technical questions / Troubleshooting October 11, 2023 at 09:56#37254Hi, 
 we are in the process of migrating to Tomcat 10.
 Would it be possible to provide a version for the jakarta namespace for PD4ML v4.0.17?
 (and possibly for new versions in the future)
- 
		AuthorPosts

