‚½‚ι‚«‚Ώ‚Μ‚ ‚κ‚±‚κ









@ Top ▶ ƒvƒƒOƒ‰ƒ~ƒ“ƒOƒTƒ“ƒvƒ‹ ▶ ‚o‚c‚eƒtƒ@ƒCƒ‹‰ρ“]

papy—lμ‚́updftool.dllv‚πŽg—p‚³‚Ή‚Δ‚’‚½‚Ύ‚«‚ά‚·B
updftool.dllv‚πŽΐsƒtƒ@ƒCƒ‹‚Ζ“―‚ΆƒtƒHƒ‹ƒ_‚Ι’u‚’‚č쐬‚΅‚ά‚·B


‚o‚c‚eƒtƒ@ƒCƒ‹‰ρ“]‚ΜƒTƒ“ƒvƒ‹‚Ε‚·B

‚b”

// using System.IO;
// using System.Runtime.InteropServices;

[DllImport("pdftool.dll")]
private static extern IntPtr LoadPDF(string OpenFileName);
[DllImport("pdftool.dll")]
private static extern bool FreePDF(IntPtr pdf);
[DllImport("pdftool.dll")]
private static extern int GetPDFPageCount(IntPtr pdf); // ƒy[ƒW”Žζ“Ύ
[DllImport("pdftool.dll")]
private static extern int RotatePDF(IntPtr pdf, int StartPos, int EndPos, string SaveFileName, int Rotate);

IntPtr hPDF = LoadPDF(@"C:\original.pdf");
int pagecnt = GetPDFPageCount(hPDF);
RotatePDF(hPDF, 1, pagecnt, @"C:\rotate.pdf", 1); // RotateF‚Pc‰E90“x@‚QcΆ90“x@‚Rc180“x
FreePDF(hPDF);



@