我使用以下函数将pdf分成两部分.
虽然它正在分割pdf,但内容却显得颠倒了.如何将其旋转180度.
请帮忙.下面是相同的代码
private static void ExtractPages(string inputFile, string outputFile,
int start, int end)
{
// get input document
PdfReader inputPdf = new PdfReader(inputFile);
// retrieve the total number of pages
int pageCount = inputPdf.NumberOfPages;
if (end < start || end > pageCount)
{
end = pageCount;
}
// load the input document
Document inputDoc =
new Document(inputPdf.GetPageSizeWithRotation(1));
// create the filestream
using (FileStream fs = new FileStream(outputFile, FileMode.Create))
{
// create the output writer
PdfWriter outputWriter = PdfWriter.GetInstance(inputDoc, fs); …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用PDF进行冲压,需要将其旋转90度才能正确铺设?有人知道怎么做吗?似乎无法在网上找到它.