Skip to content

Type mismatch (error 13) #1

Description

@rdebacke

Hi,

I did copy every files in my project, and I get "Type mismatch (error 13)" when running the code.

The code I run is the sample presented here (with the simple .pdf file, generated with Microsoft Print to PDF, on my desktop):

Dim pdf As pdfDocument
Set pdf = pdfDocument.pdfDocument()
If pdf.OpenPdf("C:\path\to\input.pdf") Then
    Debug.Print "Title: " & pdf.Title
    Debug.Print "Pages: " & pdf.PageCount
    pdf.Title = "My Modified PDF"
    pdf.SavePdfAs "C:\path\to\output.pdf"
End If

Do you have any idea what could be wrong ?

Romain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions