小编Cas*_*sey的帖子

使用C#中的iTextSharp将PDF旋转90度

我正在尝试使用PDF进行冲压,需要将其旋转90度才能正确铺设?有人知道怎么做吗?似乎无法在网上找到它.

c# pdf itextsharp

7
推荐指数
1
解决办法
9926
查看次数

逐页复制,使用iTextsharp在两者之间插入空白页

如何在每个页面之间添加新页面,然后复制到新PDF.我知道我遗漏了一些基本的东西,但似乎并没有把它正确地弄下来.

        int n = pdfReaderInput.NumberOfPages;
        Document document = new Document(); 

        PdfCopy copy = new PdfCopy(document, new FileStream(tempFile, FileMode.OpenOrCreate)); 
        document.Open();
        for (int i = 0; i < n; )
        {
            copy.AddPage(copy.GetImportedPage(pdfReaderInput, ++i));
        }

        document.Close();

        return tempFile;
Run Code Online (Sandbox Code Playgroud)

我理解并知道这是错的,但我不确定我需要做什么.基本上,我在每页之间添加一个空白的pdf.提前致谢!

.net c# itext itextsharp

1
推荐指数
1
解决办法
2492
查看次数

标签 统计

c# ×2

itextsharp ×2

.net ×1

itext ×1

pdf ×1