-
Acrobat API
I am using the acrobat API to manipulate pdf files and all of the methods
seem to be working fine except the CreateThumbs() it always seems to return
false. The API says that it will return false if the thumbnails were not
created successfully or if the viewer does not support editing but I have
no problem editing other parts of the document. Can anyone help me here and
tell me perhaps why the following does not work?
Set pdDoc = CreateObject("AcroExch.PDDoc")
'Open the file entered by the user
openOk = pdDoc.Open(filename)
If Not openOk Then
error = vbCrLf & "Unable to open " & filename & " make sure the path
is correct"
Call ReportBack(error, STD_ERROR_HANDLE)
clean = False
Else
normal = vbCrLf & filename & " open, now creating thumbnails."
Call ReportBack(normal, STD_OUTPUT_HANDLE)
End If
'Create thumbnails of all the pages in the document
'catch errors and send error message
pgCount = pdDoc.GetNumPages
thumbsOk = pdDoc.CreateThumbs(0, pgCount)
If Not thumbsOk Then
error = vbCrLf & "ERROR: Unable to create Thumbnails"
Call ReportBack(error, STD_ERROR_HANDLE)
clean = False
Else
normal = vbCrLf & "Thumbnails created successfully, now updating
properties."
Call ReportBack(normal, STD_OUTPUT_HANDLE)
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks