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 - Outlines being destroyed when merging files
  FAQ FAQ  Forum Search   Register Register  Login Login

Outlines being destroyed when merging files

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


Joined: 12 May 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote BSing Quote  Post ReplyReply Direct Link To This Post Topic: Outlines being destroyed when merging files
    Posted: 17 May 09 at 11:59AM
Hi,

Is there a way to merge two files and keep the outline/bookmarks from each intact? When I call the MergeFiles function with files that have outlines, the resulting file has none.

I'm using PHP to call the library.


       $result = $qp->MergeFiles($filetoadd,$filetobeaddedto,  $resultfilename);


Any hints/examples would be appreciated.

Thanks!

Brian


Back to Top
BSing View Drop Down
Beginner
Beginner


Joined: 12 May 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote BSing Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 09 at 4:17PM
I also tried the MergeDocument function, as follows:


    // Based on example from [[[ http://www.quickpdf.org/forum/forum_posts.asp?TID=1077 ]]]
    $qp->LoadFromFile($filetoadd);
    $newadditionpagecount=$qp->PageCount; // Get the page count
    //$qp->Unencrypt;
    $msd = $qp->SelectedDocument;
    $qp->LoadFromFile($filetobeaddedto);
    //$qp->Unencrypt;
    $md0 = $qp->SelectedDocument;
    $qp->SelectDocument($msd);
    $qp->MergeDocument($md0);
    $qp->SaveToFile($resultfilename);
   


Still no bookmarks in $resultfilename...
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 09 at 1:43AM
Hi!

How should this go?
Perhaps in both documents (with perhaps the same pagecount) there are outlines linked to the same pagenaumbers? I think this will produce problems over problems.
You should use the get...outline-functions before merging and the set...outline-functions after merging.

Cheers, Ingo
Back to Top
BSing View Drop Down
Beginner
Beginner


Joined: 12 May 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote BSing Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 09 at 10:43PM
Acrobat has a function that it adds to explorer that allows the merge of PDFs with a right-click. When PDFs are merged this way, the bookmarks in both of them come through. iirc, each file's bookmarks are underneath a parent bookmark that's the name of the file. I was hoping that merge did that as well. Is that possible?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 09 at 12:38AM
Hi!

Please keep in mind that we're talking here about the 1 mb of QuickPDF - not about the 100 mb installation of the adobe reader ;-)

I've told you that there are functions to do it yourself manually with QuickPDF.

Cheers, Ingo
Cheers,
Ingo

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