I am adding a link to my CSS file in HTML as follows:
<link rel="stylesheet" type="text/css" href="http://hostname/path/Styles/print.css" />
The stylesheet “print.css” has the following imports:
@import "Default/default_print.css";
@import "Custom/custom_print.css";
These files are located at http://hostname/path/Styles/Default/default_print.css
and http://hostname/path/Styles/Custom/custom_print.css
respectively.
The following code instantiates my document object:
var document = new Document(HtmlStream, new HtmlLoadOptions("http://hostname/path/Styles"));
I then take the pages from this document and put them into a larger document:
foreach (Page page in document.Pages) {
Document.Pages.Add(page);
}
Is stitching the pages into a larger Aspose.Pdf.Document where I’m going wrong? I have tried creating this master document with the following code:
using (var stream = new MemoryStream())
Document = new Document(stream, new HtmlLoadOptions("http://hostname/path/Styles"));
as well as:
Document = new Document();