Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - NewOutline is error!
  FAQ FAQ  Forum Search   Register Register  Login Login

NewOutline is error!

 Post Reply Post Reply
Author
Message
mjohn View Drop Down
Beginner
Beginner


Joined: 28 Oct 11
Location: ??
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjohn Quote  Post ReplyReply Direct Link To This Post Topic: NewOutline is error!
    Posted: 28 Oct 11 at 6:53PM
/////////////////////////////////////////////////////////
With pdflibrary
 lngDoc = .NewDocument
For i = 1 To 10
If i > 1 Then .NewPage
.NewOutline 0, App.path & "\" & Format(i, "00000#") & ".tif", .SelectedPage - 1, 0 //error  whether use .SelectedPage - 1 or use .SelectedPage
.AddImageFromFile App.path & "\" & Format(i, "00000#") & ".tif", 0
.SetPageDimensions .ImageWidth, .ImageHeight
               .drawImage 0, .pageHeight, .ImageWidth, .ImageHeight
Next
.SaveToFile App.path & "\1.pdf "
.RemoveDocument lngDoc
End With

/////////////////////////////////////////////////////////

Above code 
1. if I use .SelectedPage, then the outline will link to the next page what i want, I want it link to the 1st page ,but it link to 2nd page.
2. if I use .SelectedPage-1, then the first outline will error, the other outline will be fine.

So how can i add 10 images and create 10 outline to link to them?

Thanks!

Back to Top
mjohn View Drop Down
Beginner
Beginner


Joined: 28 Oct 11
Location: ??
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjohn Quote  Post ReplyReply Direct Link To This Post Posted: 01 Nov 11 at 2:52PM
I can do it now.
This is my mistake
Thanks!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store