From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: generating ToC for existing PDF? Date: Mon, 28 Oct 2013 01:26:35 +0000 Message-ID: References: <20131026131130.GK12437@pacific.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VabbL-0000E3-VG for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 21:26:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VabbI-00009q-BF for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 21:26:39 -0400 Received: from mail-ve0-x229.google.com ([2607:f8b0:400c:c01::229]:57567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VabbI-00009k-5r for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 21:26:36 -0400 Received: by mail-ve0-f169.google.com with SMTP id c14so3068172vea.14 for ; Sun, 27 Oct 2013 18:26:35 -0700 (PDT) In-Reply-To: <20131026131130.GK12437@pacific.linksys.moosehall> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list On 26 October 2013 14:11, Adam Spiers wrote: > Hi all, > > I have an existing PDF, along with a text file table of contents. Is > it possible to use org to generate a new PDF which includes a ToC at > the beginning, where each item in the ToC is hyperlinked to its > corresponding page in the original PDF? I see that org understands > hyperlinks like: > > docview:papers/last.pdf::NNN > > but I'm not sure if exporting to PDF would preserve those hyperlinks, > and even if so, when merging the generated ToC with the original PDF, > there would need to be a way to adjust them to point within the new > merged file. I found a solution: http://unix.stackexchange.com/questions/97695/generate-a-hyperlinked-table-of-contents-and-insert-into-existing-pdf