I have a layout with fixed margins that I am using to preview prints. I am utilizing a script to include a total number of pages on the preview. It works fine for sending to a typical printer. However, if I use the save to PDF feature the created PDF often results in less pages then the original preview. Therefore the total number of pages is not accutrate. The PDF either has smaller margins or slightly tighter spacing so that it is fitting the same documentation onto less pages.