HTML to PDF- and add header/footer to PDF problems

ShaiPetel:

I have hit another wall.

This html (attached) throws a strage error, resulting again in empty pdf file (0 bytes) which cannot be deleted before iisreset.

See the html and the error attached.

Can you please confirm this will be resolved as well in the upcoming version?

Error: {"Stack empty."} comfing from Pdf.Save() method.

I found the problem. It happens when i have css class that has a background property uses the url("file path...").

As soon as i get rid of all url("") in the styles it starts working.

Hi Shai,

ShaiPetel: When is version 6.5 expected? Will I get an alert on it?

As per our current schedule, we will release the new version of Aspose.Pdf for .NET v6.5 in the first week of next month, hopefully. Also, you will be notified via this forum thread regarding the release of the new version.

ShaiPetel: Also - can you please confirm that 6.5 API will be backwards compatible? I mean no namespace / classes names changed?
We cannot deploy using a binding redirect since backward versions are not supported.

It is very hard when support backward versions are not supported.

New version will be backward compatible with Aspose.Pdf for .NET 6.x versions.

Thank You & Best Regards,

Hi Shai, we have received the template file you shared.

We have identified the issue you mentioned after an initial test. Your issue has been logged in our issue tracking system with the ID PDFNEWNET-32040. We will keep you updated on any progress through this forum thread.

Sorry for any inconvenience caused.

Just found another problem with HTML to PDF converter:

I have a simple html file, in the body i only have:
j
a
a
a
aa
a
a
a
sd
asd
asd
asv

It seems it is converted into PDF all text goes in one row.
tag is ignored.
is also ignored. The only thing that breaks line is

...
, but even that adds a thin white border around each row it looks ridiculous, plus I cannot change the html to guarentee it will not have br tags - it is autogenerated from InfoPath for me.

Please advise if there is a fix for it.
is one of the most common basic HTML elements, I don't see how this can be left unsupported.

Thanks.

Found the issue.

It is caused by CSS statement setting br tag to display:none

This is the class i have:
.ms-quicklaunch div.ms-navsubmenu1 br{.ms-quicklaunch div.ms-navsubmenu1 br{display:none;}

As you can see, it only reffers to BR tags under specific location, but in the pdf print it removes all BR tags in the page.

HTML / Internet Explorer still breaks the line in this case, So i think you should still fix it.

One more issue:

When printing html to PDF that is longer than 1 page, the page margins i specify are not kept.

This is my code:

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
pdf.PageSetup.Margin.Outer = pdf.PageSetup.Margin.Inner = 0;
pdf.PageSetup.Margin.Top = pdf.PageSetup.Margin.Right = pdf.PageSetup.Margin.Left = pdf.PageSetup.Margin.Bottom = 10;

But bottom margin appears not to work on multiple pages. Instead the content goes all the way to the end of the page, and even clipped under it in some cases.

Please let me know if you can reproduce, or if you need me to submit a sample html.

(Just simple html with simple table is all i got, have a lot of rows and some rows have multiple row text using br or div ).

The issues you have found earlier (filed as 32040;31537) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as PDFNEWNET-31693;PDFNEWNET-31536) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.