HTMLBIND Issue


#1

When I bind a webpage to the pdf it gives me an extra marign on the first page only. I have attached the pdf produced and the sample .net code and sample html is below.

Here is the code to create the pdf.

Dim app As Pdf

Dim license As License = New License

license.SetLicense("Aspose.Pdf.lic")

app = New Pdf

app.BindHTMLFromUrl("http://localhost/dynamiccontrols/admin/testbind.html")

app.PageSetup.PageHeight = 792.0F

app.PageSetup.PageWidth = 612.0F

app.Sections(0).PageInfo.Margin.Top = 0.0F

app.Sections(0).PageInfo.Margin.Right = 1.0F ' marg.Right

app.Sections(0).PageInfo.Margin.Left = 11.0F 'marg.Left

app.Save("HelloWorld.pdf", SaveType.OpenInBrowser, Response)

HEre is the sample html code

</!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Untitled Document</title>

</head>

<body>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>

</body>

</html>


#2

Thanks for considering Aspose.

The same error has been reproduced, We will find out reasons and answer u ASAP.


#3

An extra marign on the first page is caused by the content of in the sample html.
So if you remove tag, it will work well.


#4

Is there going to be an eventual release to fix this? I would assume you would just ignore everything within and


#5

Yes, we will fix it in the future version.


#6

We have fixed this issue. The new version will be published at this weekend.