Пример #1
0
        private bool ImposeBrief(List <CockleFilePdf> imposedFiles, string imposedBody, TypeOfBindEnum bind)
        {
            // remove cover, combine body, and add blank pages where needed
            PdfUtilities.CombineBriefPages_AddingBlanks(imposedFiles, imposedBody, bind);

            if (// reorder saddlestitch pages
                !PdfUtilities.SaddleStitch_ReorderPagesForLayout(imposedBody) ||
                // crop pages
                !PdfUtilities.CropCockleBriefPages(imposedBody) ||
                // layout on B4 pages
                !PdfUtilities.SaddleStitch_LayoutCroppedBrief(imposedBody))
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Пример #2
0
        private void ImposeBrief(List <CockleFilePdf> imposedFiles, string imposedBody, TypeOfBindEnum bind)
        {
            // remove cover, combine body, and add blank pages where needed
            if (!PdfUtilities.CombineBriefPages_AddingBlanks(imposedFiles, imposedBody, bind))
            {
                // problem if returns false
            }

            // crop pages
            if (!PdfUtilities.CropCockleBriefPages(imposedBody))
            {
                // problem if returns false
            }
            // layout on B5 pages
            if (!PdfUtilities.PerfectBind_LayoutCroppedBrief(imposedBody))
            {
                // problem if returns false
            }
        }