C2020-002 Logic to use either the Letter or A4 paper size
This commit is contained in:
@@ -124,11 +124,12 @@ namespace Volian.Print.Library
|
||||
int numPages = reader.NumberOfPages;
|
||||
int currentPageNumber = 0;
|
||||
PdfOutline outline = null;
|
||||
Rectangle paperSize = PDFPageSize.UsePaperSize(_docVersionInfo.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize); // C2020-002 paper size is now set in the format files
|
||||
do // merging pages into complete...
|
||||
{
|
||||
currentPageNumber += 1;
|
||||
mergedPageNumber += 1;
|
||||
doc.SetPageSize(PageSize.LETTER);
|
||||
doc.SetPageSize(paperSize);
|
||||
doc.NewPage();
|
||||
PdfImportedPage page = writer.GetImportedPage(reader, currentPageNumber); // gets a page that is 'ready' to be written to combined pdf
|
||||
if (doPageNum) // get the string & fill in with <page> and <of> numbers
|
||||
|
Reference in New Issue
Block a user