Hi Jody,
Here are some suggestions to reduce the size of the file.
1. As I told you in my previous post, the performance can be improved by using Add() method rather than using templates.
2. To rotate the page that has the image, you can do the following and add them as page itself rather than as template.
//Rotate the page
IPDFPage page = doc.Pages[ 0 ];
page.Rotation = PageRotation.Degree90;
page.Graphics.DrawImage(new PointF(100,400),@path+"Sunset.jpg",new Size(350,300));
3. Also, you can rotate the image and then render that image into PDF document as follows.
//Rotate the image
System.Drawing.Image img= System.Drawing.Image.FromFile(@"../../data/Sunset.jpg");
img.RotateFlip(RotateFlipType.Rotate90FlipY);
doc.CreatePage();
//Draw the image into the document.
doc.LastPage.Graphics.DrawImage(new PointF(100,400),img,new Size(350,300));
Here is a sample for your reference
addpages.zip
These will reduce the size and time when compared to usage of templates.Please take a look into it and let me know if you have anyother queries.
Regarding the compression, the compression type supported by Essential PDF is Zlib Compression.
You can find the change in size of the file based on the content of the PDF document.
ZIP works well on images with large areas of single colors or repeating patterns, such as screen shots and simple images created with paint programs, and for black-and-white images that contain repeating patterns.
Hence in other type of contents, Zlib is lossless and you can not find difference in size.
Please let me know if you have any queries.
Thanks,
Dhivya.