{"action":"created","issue":{"url":"https://api.github.com/repos/mstamy2/PyPDF2/issues/193","labels_url":"https://api.github.com/repos/mstamy2/PyPDF2/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/mstamy2/PyPDF2/issues/193/comments","events_url":"https://api.github.com/repos/mstamy2/PyPDF2/issues/193/events","html_url":"https://github.com/mstamy2/PyPDF2/issues/193","id":65846615,"number":193,"title":"PyPDF2.utils.PdfReadError: Unexpected destination '/__WKANCHOR_2'","user":{"login":"hannal","id":4952,"avatar_url":"https://avatars.githubusercontent.com/u/4952?v=3","gravatar_id":"","url":"https://api.github.com/users/hannal","html_url":"https://github.com/hannal","followers_url":"https://api.github.com/users/hannal/followers","following_url":"https://api.github.com/users/hannal/following{/other_user}","gists_url":"https://api.github.com/users/hannal/gists{/gist_id}","starred_url":"https://api.github.com/users/hannal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannal/subscriptions","organizations_url":"https://api.github.com/users/hannal/orgs","repos_url":"https://api.github.com/users/hannal/repos","events_url":"https://api.github.com/users/hannal/events{/privacy}","received_events_url":"https://api.github.com/users/hannal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-02T05:56:22Z","updated_at":"2015-05-22T19:32:06Z","closed_at":null,"body":"- PyPDF2 1.24\r\n\r\nThe exception occurs when building outline for a pdf generated by wkhtmltopdf. \r\n\r\n```\r\nfrom PyPDF2 import PdfFileMerger, PdfFileReader\r\n\r\nmerger = PdfFileMerger()\r\nmerger.append(PdfFileReader(file('test.pdf', 'rb')))  # Unexpected destination\r\n\r\n_pdf = PdfFileReader(file('a.pdf', 'rb'))\r\n_pdf.outlines  # same as the exception\r\n```\r\n\r\nI got a below error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/Users/kay/Workspace/.virtualenv/rsquare-doc/lib/python2.7/site-packages/PyPDF2/pdf.py\", line 1145, in <lambda>\r\n    outlines = property(lambda self: self.getOutlines(), None, None)\r\n  File \"/Users/kay/Workspace/.virtualenv/rsquare-doc/lib/python2.7/site-packages/PyPDF2/pdf.py\", line 1180, in getOutlines\r\n    outline = self._buildOutline(node)\r\n  File \"/Users/kay/Workspace/.virtualenv/rsquare-doc/lib/python2.7/site-packages/PyPDF2/pdf.py\", line 1224, in _buildOutline\r\n    raise utils.PdfReadError(\"Unexpected destination %r\" % dest)\r\nPyPDF2.utils.PdfReadError: Unexpected destination '/__WKANCHOR_2'\r\n```\r\nAny help on this would be appreciated. Thank you.\r\n"},"comment":{"url":"https://api.github.com/repos/mstamy2/PyPDF2/issues/comments/104749327","html_url":"https://github.com/mstamy2/PyPDF2/issues/193#issuecomment-104749327","issue_url":"https://api.github.com/repos/mstamy2/PyPDF2/issues/193","id":104749327,"user":{"login":"pedroteixeira","id":14740,"avatar_url":"https://avatars.githubusercontent.com/u/14740?v=3","gravatar_id":"","url":"https://api.github.com/users/pedroteixeira","html_url":"https://github.com/pedroteixeira","followers_url":"https://api.github.com/users/pedroteixeira/followers","following_url":"https://api.github.com/users/pedroteixeira/following{/other_user}","gists_url":"https://api.github.com/users/pedroteixeira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedroteixeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedroteixeira/subscriptions","organizations_url":"https://api.github.com/users/pedroteixeira/orgs","repos_url":"https://api.github.com/users/pedroteixeira/repos","events_url":"https://api.github.com/users/pedroteixeira/events{/privacy}","received_events_url":"https://api.github.com/users/pedroteixeira/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T19:32:06Z","updated_at":"2015-05-22T19:32:06Z","body":"Sadly, me too, split of wkhtmltopdf only worked with ghostscript or pdftk (pdftk has easier api)"}}