Formatting issue in pdf generated from HTML

My code is generating rum time HTML which contains tages like

etc. I am passing this HTML to Aspose.Pdf.Text. It generates the PDF successfully but it inserts a blank page after every

or after every

here is the code:

Aspose.Pdf.Section section = new Section();

pdf.Sections.Add(section);

Aspose.Pdf.Text text = new Text(shtml);

text.IsHtmlTagSupported = true;

text.TextInfo.Color = new Color("red");

pdf.Sections[0].Paragraphs.Add(text);

please suggest.


This message was posted using Page2Forum (attachment) from HTML to PDF using InLineHTML - Aspose.Pdf for .NET

Hello Neha,

Thanks for using our products.

I have tried converting the attached HTML file into PDF format and I am unable to notice the blank page problem. In fact there are some other formatting issues because you are using Inline CSS and I am afraid this feature is currently not supported. This requirement is already logged in our issue tracking system as PDFNET-14739. Our development team is working over this requirement and once we have some updates regarding its implementation, we would be pleased to update you with the status of correction. More along, using InLineHTML to convert the HTML pages into PDF format is a workaround and we hope to introduce back the BindHTML(..) method by the month of September, but still it's not a promise.

Can you please share which version of Aspose.Pdf for .NET you are using ?

We apologize for your inconvenience.

Hello Neha,

Thanks for your patience.

I am pleased to inform you that with the release of version 4.6.0 of Aspose.Pdf for .NET, the support for Inline style and external CSS is provided. But I am afraid all the styles are currently not supported. Our development team is still working hard to support rest of the style formattings and as soon as the feature becomes more stable, we would be pleased to share the information.

For more information on how to use CSS formatting in HTML, please visit the following link HTML to PDF using InLineHTML

In case you have any further query, please feel free to contact.

We have 4.6.0 and are having problems with the html formatting not working correct and styles not working as well. I am basically building a set of html tables (html string) then trying to convert to pdf. But, none of the html format of the table is showing in the generated pdf. Like centering or right aligning of text. Is there an update for 4.6.0 or a list of currently supported html tags and css tags?

Hello Kevin,

Thanks for considering Aspose.

HTML to PDF conversion using Aspose.Pdf is in Beta phase and I am afraid the stable version of feature is currently not available. Our development team is working hard to get this feature supported and as soon as we have some definite news regarding its support, we would be pleased to update you with the status of correction. However, you may visit the following link for required information regarding Supported HTML tags and CSS tags.

Can you please share the source HTML that you are using so that we can test the scenario at our end. We apologize for your inconvenience.

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


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