Html to pdf- when try to convert html contains frames it produces Empty page.
-
Hi All,
I have a application htmltopdf using webkit. but when I have try to convert a html page that contains frames it produce empty output pdf. But normal html pages it works as expected. I have attched my input html text.
main.html
<!DOCTYPE html>
<html>
<head>
<title>a simple frameset document</title>
</head>
<frameset cols="20%, 80%">
<frame src="frame1.html">
<frame src="frame2.html">
</frameset>
<body style="height: 1000px; width: 1000px">
</body>
</html>Frame1.html
<html>
<head></head>
<body>
<div><h1>hello world</h1></div>
<h2>browsers</h1>
->Mozila Firefox<br>
->Google Chrome<br>
->Internet explorer<br><h1>Webkit</h1> WebKit is a layout engine software component for rendering web pages in web browsers. It powers Apples Safari web browser, and a fork of the project is used by Chromium-based browsers, such as Opera or Google Chrome.
</body>
</html>Frame2.html
<html>
<head></head>
<body>
<div><h1>hello world</h1></div>
This is a left side frame. It works fine in browsers.
Complete solution for creating and sharing interactive dashboards
Easy to use dashboard designer application
View, manage, and share dashboards through a web interface
Free community license available
<br><br>
--->Google<br><br>
Google Inc. is an American multinational technology company specializing in Internet-related services and products. These include online advertising technologies, search, cloud computing, and software.
The British Broadcasting Corporation (BBC) is the public service broadcaster of the United Kingdom, headquartered at Broadcasting House in London.
<br><br>
--->CNN<br><br>
The Cable News Network (CNN) is an American basic cable and satellite television channel that is owned by the Turner Broadcasting System division of Time Warner.[1] The 24-hour cable news channel was founded in 1980 by American media proprietor Ted Turner.
</body>
</html>Regards,
Siddharth. -
Many converters show this glitch while converting. I tried using another online HTML to PDF converter and my problem was solved. You should try it too.