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!
How do I change zoom of link to pages in PDF? |
Post Reply |
Author | |
menteith
Beginner Joined: 15 Sep 16 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 15 Sep 16 at 12:50AM |
Hi all,
This is my first post. I'd like to change zoom of all links pointing to pages in a pdf file. Debenu has similar topic on finding and replacing URL links in PDF files. Here's the code from: Debenu Product Knowledgebase // Load PDF to process DPL.LoadFromFile(@"C:\Temp\Sample.pdf", ""); // Count pages in doc int pCount = DPL.PageCount(); // Iterate through each page in the doc for (int p = 1; p <= pCount; p++) { // Select page to scan DPL.SelectPage(p); // Count annotations on the page int annotCount = DPL.AnnotationCount(); // Loop through each annotation for (int a = 1; a <= annotCount; a++) { // Get annotation's ID int annotActionID = DPL.GetAnnotActionID(a); // Find out annotation's action type, we are looking for URI string actionType = DPL.GetActionType(annotActionID); // If action type is URI, we've found something to change if (actionType == "GoTo") // I changed it to "GoTo" |
|
menteith
Beginner Joined: 15 Sep 16 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Nobody?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
You're too impatient. The post is still new from yesterday...
you should wait few days... perhaps then somebody will answer. This is only a user-forum here! If you wanna change the zoom while opening a pdf-file you should take SetOpenActionDestination: http://www.debenu.com/docs/pdf_library_reference/SetOpenActionDestination.php It'll work ... i'm using it, too. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
menteith
Beginner Joined: 15 Sep 16 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Sorry, I was sure that when nobody answers for one day it means that the topic is dead. I was obviously wrong:)
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
You need to know that, here, this is very small user's community (in Internet Scope meaning) so there is not a lot of users in "always on line" mode.
To compare, and to know what I mean you can look here: https://www.autoitscript.com/forum/ And there (in AutoItForum) is almost always some MVP on line. For example just now 2*MVP + 1*MOD + 37 loged users, +632 GUESTS ! ps. If you want to change it, I encourage you to learn, and the more frequent of visiting QuickPDF forum :)
Edited by mLipok - 17 Sep 16 at 12:23AM |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store