How to get style @page size in HTMLDocument

Hello support !!

While we loaded HTML file into HTMLDcoument object and how can we got the style @page size in HTMDocument ?

It will be better if you can provide a sample program for reference …

The html will contain some CSS elements as follows:

@page { size: A4; margin: 80pt 20pt 25pt 20pt; @top-left { font-size:8; font-family:Microsoft JhengHei; margin-left:10px; padding-top:15px; width: 150px; content:"{{TopLeft}}"; white-space: pre-line; } } thanks !! Mason Pai 08-11-2024

@masonpai0212

We have opened the following new ticket(s) in our internal issue tracking system and will share our feedback with you after performing some investigation against the feature you have inquired about.

Issue ID(s): HTMLNET-5712

@masonpai0212

We have prepared a program that shows how to find all @page rules in a document and get their properties using Aspose.HTML for .NET. It is in the archive attached below “GetPageStyle.zip”.

GetPageStyle.zip (2.5 KB)