I have an image which is basically a screenshot of a web form which a client wants to print off. I have some java script that converts this to an image and when printed this prints a 6 pages and this looks perfect. Annoyingly the want a pdf and when I try to embed this into a pdf it puts in onto one page when I want this image to be copied onto multiple pages. The image in questions has a width of 1080px and a height of 22,542px (It’s a long form).
Is there anyway using any aspose product that does this? I have tried Aspose.Imaging, pdf and word but the image gets shrunk onto one page?
An example example file of the same size as my original file.
A pdf of the output I would like. I created the pdf by right clicking on the image and clicking convert to pdf. I assume this was done by adobe as this is installed on my machine
var bytes = Convert.FromBase64String(imageAsByeArray);
MemoryStream mystream = new MemoryStream(bytes);
// Instantiate Document Object
Document doc = new Document();
// Add a page to pages collection of document
Page page = doc.Pages.Add();
page.PageInfo.Margin.Bottom = 0;
page.PageInfo.Margin.Top = 0;
page.PageInfo.Margin.Left = 0;
page.PageInfo.Margin.Right = 0;
Aspose.Pdf.Image imageObject = new Aspose.Pdf.Image();
page.Paragraphs.Add(imageObject);
imageObject.ImageStream = mystream;
doc.Save(@"C:\Users\John Smith\Desktop\test.pdf");