PD4ML v4 › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › Sample code generating blank pages This topic has 8 replies, 3 voices, and was last updated Mar 20, 201315:53:04 by PD4ML. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts blauPunk March 20, 2013 at 15:53 #26824 Using an evaluation copy. The code is a sample right from the documentation. It just converts an HTML page from a URL. It compiles and runs just fine using JDK 1.6 on windows 7, but the output is blank. Any direction would be greatly appreciated. thanks PD4ML March 20, 2013 at 15:59 #29248 Unfortunately you did not provide more details regarding your test scenario and environment. A typical reason of blank pages is a binary data corruption (by an implicit applying of character encoding conversion to a binary document) by a saving or sending a PDF to HTTP. For example: pdf-generation-troubleshooting-f4/pdf-pages-are-all-blank-t680.html If it is definitely not your case, please publish the HTML, PDF samples and Java code you run. blauPunk March 20, 2013 at 16:31 #29249 Sorry, I’ve attached the code. thanks ! PD4ML March 20, 2013 at 17:23 #29250 try to add encoding=”default” attribute to blauPunk March 22, 2013 at 15:12 #29252 try to add encoding=”default” attribute to Sorry, I’m a newbie. I’m still at a loss. Where is this tag? is this a configuration item ? I’m just running straight java. No web apps. thanks PD4ML March 22, 2013 at 20:05 #29253 oops, sorry – I published the hint to a wrong thread. Could you please also post a sample PDF with blank pages? blauPunk March 22, 2013 at 21:30 #29251 Sure, here it is. Anonymous March 27, 2013 at 13:53 #29254 So what do you think ???? PD4ML March 27, 2013 at 14:04 #29255 Sorry for the delay with the reply. As I see the PDF has been generated from a blank HTML document. What is confusing, is that the PDF generation parameters [language=java:wjqpokp9]% PD4ML version: 381fx1 % JDK version: 1.6.0_31 % OS version: Windows 7 6.1 % File encoding: Cp1252 % size: java.awt.Dimension[width=595,height=842] % insets: java.awt.Insets[top=28,left=28,bottom=28,right=28] % htmlWidth: 780 % call with URL[/language:wjqpokp9] does not correspond API calls in test.java file you sent. First I would make sure the Win7 workstation can establish an outgoing HTTP connection to google.com (or to other HTML source) and there is no firewall/proxy in-between. Author Posts Viewing 9 posts - 1 through 9 (of 9 total) The forum ‘Troubleshooting’ is closed to new topics and replies.