PDFConverterMonitor オブジェクトの解説

このオブジェクトはPDF 変換をモニタするために使用されます。

使用例


' "WithEvents" キーワードを変数で宣言します。


Private WithEvents oPDFConverterMonitor As easyPDFConverter.PDFConverterMonitor
 
Private Function oPDFConverterMonitor_OnInit() As Long
    '...
    oPDFConverterMonitor_OnInit = CNV_MON_CONTINUE_CONVERSION
End Function
 
Private Function oPDFConverterMonitor_OnPageStart(ByVal PageNumber As Long, ByVal PageCount As Long, ByVal FileName As String) As Long
    '...
    oPDFConverterMonitor_OnPageStart = CNV_MON_CONTINUE_CONVERSION
End Function
 
Private Function oPDFConverterMonitor_OnEnd(ByVal Result As easyPDFConverter.cnvResult) As Long
    '...
    oPDFConverterMonitor_OnEnd = CNV_MON_CONTINUE_CONVERSION
End Function
 
' ...
Private Sub Init()
    Set oConverter = CreateObject("easyPDF.PDFConverter.7")
    Set oPDF2Image = oConverter.PDF2Image
    Set oPDFConverterMonitor = oConverter.PDFConverterMonitor
    oPDF2Image.ImageFormat = CNV_IMAGE_FMT_JPEG
    oPDF2Image.Convert "C:\input.pdf", "C:\output.jpg"
End Sub