Moved DocPDF from Documents to new PDFs table
This commit is contained in:
@@ -316,9 +316,9 @@ namespace Volian.Print.Library
|
||||
{
|
||||
readerWord = myPdfFile != null ? new PdfReader(myPdfFile) : null;
|
||||
OnStatusChanged("Get Section", PromsPrinterStatusType.GetSection);
|
||||
if (mySection.MyContent.MyEntry.MyDocument.DocumentConfig.Printing_Length != 0) //.SectionConfig.Section_NumPages != "")
|
||||
{
|
||||
int sectPageCount = (int)(Math.Ceiling(mySection.MyContent.MyEntry.MyDocument.DocumentConfig.Printing_Length)); //decimal.Parse(mySection.MyContent.MyEntry.MyDocument.DocumentConfig.Printing_Length)));
|
||||
int sectPageCount=0;
|
||||
using(PdfInfo myPdf = PdfInfo.Get(mySection))
|
||||
sectPageCount = (int)(Math.Ceiling(myPdf.PageCount));
|
||||
for (int ii = 0; ii < sectPageCount; ii++)
|
||||
{
|
||||
int pageNumber = 1 + ii;
|
||||
@@ -344,7 +344,6 @@ namespace Volian.Print.Library
|
||||
OnStatusChanged("After NewPage", PromsPrinterStatusType.NewPage);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user