' PDFファイルの情報構造体(取得用) Public Type TGetPDFInfoHeader Title(512) As Byte ' タイトル Subject(512) As Byte ' サブタイトル Author(512) As Byte ' 作成者 Keywords(512) As Byte ' キーワード Creator(512) As Byte ' 作成 Producer(512) As Byte ' PDF変換 CreationDate(20) As Byte ' 作成日時 ModDate(20) As Byte ' 更新日時 End Type ' PDFファイルの情報構造体(書き込み用) Public Type TSetPDFInfoHeader Title As String ' タイトル Subject As String ' サブタイトル Author As String ' 作成者 Keywords As String ' キーワード Creator As String ' 作成 Producer As String ' PDF変換 CreationDate As String ' 作成日時 ModDate As String ' 更新日時 End Type ' 構造体メンバのCreationDateとModDateは ' 1999年3月11日21時28分08秒にしたい場合は ' (1)19990311212808 ' (2)1999.03.11 21:28:08 '   (3)1999/03/11/21/28/08 ' など20文字以内で数字が14個あればどのような形式をいれても可能です。 ' なお、GeTPDFInfoHeaderのCreationDate、ModDateでは、(2)の形式で ' 価が戻って来ます ' PDFDesigner Tools API Public Declare Function LoadPDF Lib "pdftool.dll" (ByVal OpenFileName As String) As Long Public Declare Sub FreePDF Lib "pdftool.dll" (ByVal pdf As Long) Public Declare Function GetPDFPageCount Lib "pdftool.dll" (ByVal pdf As Long) As Long Public Declare Function GetPDFVersion Lib "pdftool.dll" (ByVal pdf As String) As Long Public Declare Function GetPDFText Lib "pdftool.dll" (ByVal OpenFileName As String, ByVal SaveFileName As String) As Long Public Declare Function GetPDFTextEx Lib "pdftool.dll" (ByVal pdf As Long, ByVal StartPos As Long, ByVal EndPos As Long, ByVal SaveFileName As String, ByVal Windowhandle As Long, ByVal LinePage As Boolean) As Long Public Declare Function GetPDFBookMark Lib "pdftool.dll" (ByVal pdf As Long, ByVal SaveFileName As String, ByVal CSV As Boolean) As Long Public Declare Function WritePDFText Lib "pdftool.dll" (ByVal OpenFileName As String, ByVal SaveFileName As String) As Long Public Declare Function WritePDFImage Lib "pdftool.dll" (ByVal OpenFileName As String, ByVal SaveFileName As String) As Long Public Declare Function CombinePDF Lib "pdftool.dll" (ByVal pdf1 As Long, ByVal pdf2 As Long, ByVal SaveFileName As String) As Long Public Declare Function CombinePDFEx Lib "pdftool.dll" (ByVal OpenFileListName As String, ByVal SaveFileName As String, ByVal Windowhandle As Long, ByVal UseOutLine As Boolean) As Long Public Declare Function CutPDF Lib "pdftool.dll" (ByVal pdf As Long, ByVal StartPos As Long, ByVal EndPos As Long, ByVal SaveFileName As String) As Long Public Declare Function RotatePDF Lib "pdftool.dll" (ByVal pdf As Long, ByVal StartPos As Long, ByVal EndPos As Long, ByVal SaveFileName As String, ByVal Rotate As Long) As Long Public Declare Function DeletePDF Lib "pdftool.dll" (ByVal pdf As Long, ByVal StartPos As Long, ByVal EndPos As Long, ByVal SaveFileName As String) As Long Public Declare Function GetPDFInfo Lib "pdftool.dll" (ByVal pdf As Long, ByRef GetPDFInfoHeader As TGetPDFInfoHeader) As Long Public Declare Function WritePDFInfo Lib "pdftool.dll" (ByVal pdf As Long, ByRef SetPDFInfoHeader As TSetPDFInfoHeader, ByVal SaveFileName As String) As Long ' サンプルで使用した windowsのAPI宣言 Public Declare Sub ZeroMemory Lib "kernel32" Alias "RtlZeroMemory" (Destination As Any, ByVal Length As Long)