how can I load in the constructor Aspose.Pdf.Document a png stream (like the case of stream pdf)
var doc = new global::Aspose.Pdf.Document(stream); // stream of PNG
var page = doc.Pages.Add();
if (info.Width < 3 || info.Height < 3)
{
page.PageInfo.Margin.Top = 1.5f;
page.PageInfo.Margin.Bottom = 1.5f;
page.PageInfo.Margin.Left = 1.5f;
page.PageInfo.Margin.Right = 1.5f;
page.PageInfo.Width = info.Width + 3f;
page.PageInfo.Height = info.Height + 3f;
}
else
{
page.PageInfo.Margin.Top = 0f;
page.PageInfo.Margin.Bottom = 0f;
page.PageInfo.Margin.Left = 0f;
page.PageInfo.Margin.Right = 0f;
page.PageInfo.Width = info.Width;
page.PageInfo.Height = info.Height;
}
return doc;
i Have the error “Startxref not found” !
Thanks for help