Free Support Forum -

Image split across 2 pages


I have an excel document which only contains a picture at the top, the picture has 20.32cm height, 27.09cm width.

Then I convert it to pdf by Aspose lib, the result is the picture is divided into 2 parts and show in 2 pages separately.

Do you know how to solve this problem?


Thanks for your posting and using Aspose.Cells.

If you want to print your entire sheet contents in a single page, then please use the following sample code.

Sample code:
String path = “e:\test2\sample.xls”;

Workbook workbook = new Workbook(path);

PdfSaveOptions opts = new PdfSaveOptions();

opts.OnePagePerSheet = true;

workbook.Save(path + “.out.pdf”, opts);

Thanks for your reply.


You are welcome. If you face any other issue, please feel free to post on our forums. We will be glad to help you more.