// PDFファイルの情報構造体(取得用) typedef struct _GETPDFINFOHEADER { char Title[513]; // タイトル char Subject[513]; // サブタイトル char Author[513]; // 作成者 char Keywords[513]; // キーワード char Creator[513]; // 作成 char Producer[513]; // PDF変換 char CreationDate[21]; // 作成日時 char ModDate[21]; // 更新日時 } GETPDFINFOHEADER; typedef GETPDFINFOHEADER *PGETPDFINFOHEADER ; // PDFファイルの情報構造体(書き込み用) typedef struct _SETPDFINFOHEADER { char *Title; // タイトル char *Subject; // サブタイトル char *Author; // 作成者 char *Keywords; // キーワード char *Creator; // 作成 char *Producer; // PDF変換 char *CreationDate; // 作成日時 char *ModDate; // 更新日時 } SETPDFINFOHEADER; typedef SETPDFINFOHEADER *PSETPDFINFOHEADER ; /* 構造体メンバの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 typedef int (__stdcall *pLoadPDF)(char *OpenFileName); typedef void (__stdcall *pFreePDF)(int PDF); typedef int (__stdcall *pGetPDFVersion)(char *OpenFileName) ; typedef int (__stdcall *pGetPDFPageCount)(int PDF); typedef int (__stdcall *pGetPDFText)(char *OpenFileName,char *SaveFileName); typedef int (__stdcall *pGetPDFTextEx)(int PDF,int StartPos,int EndPos,char *SaveFileName,HWND Windowhandle,bool LinePage); typedef int (__stdcall *pGetPDFBookMark)(int PDF,char *SaveFileName,bool CSV); typedef int (__stdcall *pGetPDFInfo)(int PDF,PGETPDFINFOHEADER pGetPDFInfoHeader); typedef int (__stdcall *pCombinePDF)(int PDF1,int PDF2,char *SaveFileName); typedef int (__stdcall *pCombinePDFEx)(char *OpenFileName,char *SaveFileName,HWND Windowhandle,bool UseOutLine); typedef int (__stdcall *pCutPDF)(int PDF,int StartPos,int EndPos,char *SaveFileName); typedef int (__stdcall *pRotatePDF)(int PDF,int StartPos,int EndPos,char *SaveFileName,int Rotate); typedef int (__stdcall *pDeletePDF)(int PDF,int StartPos,int EndPos,char *SaveFileName); typedef int (__stdcall *pWritePDFInfo)(int PDF,PSETPDFINFOHEADER pSetPDFInfoHeader,char *SaveFileName); typedef int (__stdcall *pWritePDFText)(char *OpenFileName,char *SaveFileName); typedef int (__stdcall *pWritePDFImage)(char *OpenFileName,char *SaveFileName);