Preview: Table of Contents is ignoring formatting

Preview is missing a feature. Before going further I’ll admit it is a minor feature, but nonetheless, the omission needles me. The bug description below is deliberately thorough, to allow other to reproduce the problem and variations of it.
PDFs exhibiting the problem have been made with the following 18 lines of PostScript.
/PageWidth 72 def  /PageHeight 432 def
<< /PageSize [PageWidth PageHeight] >> setpagedevice
/FontNames [  /Times-Roman  /Times-Italic  /Times-Bold  /Times-BoldItalic  ] def
0 setgray
0 1 3
    /i exch def   /FontName FontNames i get def   /FontNameText FontName 32 string cvs def
    matrix currentmatrix  PageWidth 0 translate  90 rotate
    FontName 54 selectfont  18 18 moveto  FontNameText show  setmatrix
    mark  /Dest FontName  /View [/Fit]  /DEST  pdfmark
    mark  /Action /GoTo /Dest FontName  /Title FontNameText  /F i  /OUT  pdfmark
    showpage
} for
The PostScript is also available at http://www.jdawiseman.com/papers/bugs/20130918_Preview_Bug.ps
I have converted the PostScript to PDF using Adobe Distiller 8 (the latest version on my Mac), to make
http://www.jdawiseman.com/papers/bugs/20130918_Preview_Bug_Adobe8.pdf
and also with the GhostScript installed at PS2PDF.com to make
http://www.jdawiseman.com/papers/bugs/20130918_Preview_Bug_PS2PDF.pdf
The relevant line of the PostScript ends “/F i  /OUT  pdfmark”, which makes an ‘Outline’ item, that is, an item which appears with View > Table of Contents. Observe the “/F i”, which sets the formatting, over the four pages i looping from 0 to 3 in steps of 1. This /F defines the Formatting: 0 = Plain, 1 = Italic, 2 = Bold, 3 = Bold and Italic; as explained on page of 27 of http://www.adobe.com/devnet/acrobat/pdfs/pdfmarkReference_v9.pdf
Viewed in Preview 6.0.1 (765.6) on OS X 10.8.4 this looks like
http://www.jdawiseman.com/papers/bugs/20130918_Preview_Bug_Preview.png
Oops: formatting ignored. Me needled.
But in Adobe Professional 8 the two PDFs look like:
http://www.jdawiseman.com/papers/bugs/20130918_Preview_Bug_Adobe8_Acrobat.png
http://www.jdawiseman.com/papers/bugs/20130918_Preview_Bug_PS2PDF_Acrobat.png
Much about the Acrobat is messier than Preview, but it does correctly display this aspect of the PDF. Please could Preview do so as well?
Going back to the PostScript one could also add something like “/Color [0 0.6 0]”, which would set the colour of the text to dark green. That seems to be ignored by both Preview and Adobe Pro 8 (I don’t have v11 to test). Again, a fix would be welcomed.
And why do I care? Because the long PostScript program I maintain (see www.jdawiseman.com/placemat.html for manual and code) uses these features.

Apple doesn’t routinely monitor the discussions. These are mostly user to user discussions.
Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
Feedback

Similar Messages

  • [Perm] TABLES: import contents into existing format

    I'm creating about 20 tables that have the same complex formatting: row stroke widths, color of strokes, fills, etc. Would like to import the data (from Word tables originally created in excel) . Is there a way to import data without recreating each an every table I import into InDesign?
    I suggested a "table style" to Adobe several months ago; that would be the ideal solution. What can I use now?

    Cherie,
    I have posted a script (it's actually in message 26 of the long topic on pasting unformatted text) that will import the clipboard contents into part of an existing table in such a way that the new contents retains the old formatting.
    You can find the script here:
    Populate Table From Clipboard along with a description of how to use it.
    Basically, you:
    1. Open your Excel worksheet
    2. Copy and paste the range of cells you want to update to the clipboard
    3. Switch to your InDesign document and click in the top left cell where you want the updated data to start.
    4. Run the script.
    The new data replaces the old using the formatting of the old (provided that you have used only paragraph styles to do that formatting: any use of character styles within the cells will be lost).
    Hope this helps.
    Dave

  • Table of Contents formatting issue

    Table of Contents will not format properly when I change document margins.  The TOC looked great until I had to adjust my left margin to 2inches for printing purposes.  Now the page numbers are only a couple of spaces from each header, and it looks really bad.  Is there an easy fix, so that I can adjust margins without screwing up the TOC formatting?
    Thanks!

    Thanks Jerrold,
    I have certianly considered this an option if I can't get this resolved before I have to turn in my paper. 
    I bought Pages to write my thesis, espcially since I have to include a lot of capitoned images.  I expected an Apple program to run smoothly and be intuitive, but it has been buggy at times, freezing up, and issues like the wacky TOC formatting from changing the margin size don't make sense.
    Thanks again for your time.
    RR

  • How do I make a multi-line heading show up as a single line in the Table of Contents?

    I'm writing a document where the headings often have a line break in them for the sake of formatting. When I generate a Table of Contents, they show up as two entries on the same page instead of as a single heading.
    For example, if I have a section like:
    Oh My God
    You're Totally Not Going to Read This Section
    Section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, etc.
    Then in the table of centents it shows up as something like:
    The Section Before That Section You're Not Going to Read ... 14
    Oh My God .................................................. 17
    You're Totally Not Going to Read This Section .............. 17
    The Section After That Section You're Not Going to Read .... 20
    When what I really want is a Table of Contents like this:
    The Section Before That Section You're Not Going to Read ... 14
    Oh My God You're Totally Not Going to Read This Section .... 17
    The Section After That Section You're Not Going to Read .... 20
    (Actually, I have a bunch of sections with titles like this all in a row, so it looks much worse than in the example.)
    How do I do this: Get the Table of Contents to ignore the carriage return in the middle of the section header?

    Try a Soft return, Shift + Return, instead of Paragraph break.

  • Table of contents file not taking book files into account

    Hi everyone,
    I've used Indesign's book panel to manage the chapters in a book that I've typeset. I set up the table of contents style (in a TOC document which is part of the books panel) and made sure that it used all the book chapters when compiling the table of contents by checking the option in the TOC styles diaglogue box.
    For some reason, the table of contents is ignoring all of the styles in the chapter files so it's not including anything in the table of contents other than a few headings that are within the file that contains the table of contents.
    I'm noticing that Indesign is creating a whole lot of duplicate files with a string of numbers appended to the file name, eg.
    Newbook_Cha531549083577
    These seem to duplicates of the chapter files but I have no idea why Indesign is creating them so I'm wondering whether I've got some corruption happening and whether this may be causing the problem with the table of contents.
    Has anyone had a similar problem and if yes, is there any solution?
    Really appreciate any advice.

    Peter,
    I'm having the same problem as gwh. The TOC won't go beyond the first document. All my style names are the same. I don't have style groups.
    To make the book I began with one long document that included all the chapters. I broke it into chapters by copying and pasting into new .indd documents (each one created by Save As from the first) and adding all those documents to the book.
    Generating the TOC from the one long .indd document works perfectly. I just can't get it to generate from the book (.indb) doc.
    I have all the documents in the book open. I have the first one active (in front). I generate the TOC, and I get only the entries for the first document. Here's a screenshot of my TOC box. I must be missing something really simple, huh?  (I'm using CS5)

  • Preview bug regarding Table of Contents and Annotations

    I'm involved in a paperless pilot project and am having a difficult time circumventing an issue in Preview.
    I'm re-formatting material for executive meetings from WordPerfect, Word, Excel and PowerPoint into bookmarked PDF format in Adobe Acrobat Pro X. When they are opened in Preview by senior management on MacBook Airs, the Table of Contents links everywhere correctly. However, the moment they add an annotation (in this case, notes), the table of contents is thrown one page off, regardless of their place in the document. Even after removing the note, the table of contents does not revert to the proper place. I'm assuming this occurs because the annotation throws off the markers from the imported bookmarks.
    Using Acrobat Reader on the Airs isn't an option since annotations aren't possible. We are also really trying to keep production of the PDFs limited to Acrobat Pro to ensure cross-platform compatibility of the Table of Contents.
    Has anyone else encountered these issues? Is there a potential workaround?

    A lightweight alternative to Acrobat Pro for creating a TOC is PDFOutliner ($5 on the Mac App Store.) Adding annotations later to the PDF does not affect the TOC generated by PDFOutliner.
    Note: I am the developer of PDFOutliner.

  • How to create the Table of Contents in Preview for a pdf file?

    Does anyone know how to use the Preview to create a new table of contents or add a new link to the existing table of contents?
    Thanks

    Preview cannot do this - it is not a PDF editing utility. If you have the original document in an editable format (eg a Pages, or Word document) then you can edit it, print it, and from the print dialogue, save as a PDF. Otherwise you'll need the full Adobe product or similar to acheive what you want.

  • Preview: Edit or Add to PDF's Table of Contents

    Hey everyone,
    I have a PDF that was generated by an online service (in other words, I didn't create it) and I'd like to edit or add to the Table of Contents, which currently is blank (other than the filename). (The file is otherwise able to be annotated, and has existing active links in it pointing to URLs.)
    How can I do add to the TOC? For instance, if there are 12 chapters in here, I want to create 12 lines in the TOC, so I can just click and jump to them. I see there is a workaround with Bookmarks but I'd prefer manipulating the TOC.
    And if the only way is to start with a Word doc, let me know because I can start in that format.
    Thanks,
    J
    P.S. Working with Preview 5.0.2. (504) and Snow Leopard 10.6.4.

    You can use PDFOutliner for editing the TOC (costs $5 on the Mac App Store). PDFOutliner can also *automatically* build a TOC based on the PDF's heading styles, to get you started quickly with a long PDF.
    Note - I am the developer of PDFOutliner.
    Regards,
    Jose

  • I'm creating a book format in Pages. I want the page count to be 1 on the first page of chapter one after the title page, table of contents, etc.. How do I do that?

    I'm creating a book format in Pages. I want the page count to be 1 on the first page of chapter one after the title page, table of contents, etc.. How do I do that?

    That is not the issue.
    Pages/OSX does not save files with crop marks and bleeds.
    It also by default saves transparency, which is involved in a lot of Pages' better features, at a rubbishy 72 dpi resolution.
    It also makes it extremely difficult to maintain mono-color like black only text, has no spot color and makes color management opaque.
    It really is only meant for amateur publishing and printing to your desktop printer.
    A commercial printer who is willing to use and print from Pages may have better results but at the cost of considerable micro-management which defeats the point of this "cheap" solution.
    Peter

  • Pages 5.5 table of contents not showing after formatting to ePub

    Im currently trying to format my pages version 5.5 document to ePub. My goal is to use the created document in iBooks. I have downloaded the ePub best practices template from the relevant apple help pages and followed the guidelines. However when opening the document as an ePub file via iBooks the table of contents is non existent. Any advice would be greatly appreciated. Thanks in advance.

    All the documentation I have read for created EPUB are to export XHTML, rather than DTBook. I'm not sure if it follows the same rules as EPUB for XHTML.
    Assuming it does, you need to do two things: (1) Create a TOC Style (not just a Table of Contents) in the Layout menu. (2) When in the Export EPUB dialog > Contents panel, specify the TOC Style you created.
    In an "normal" EPUB 2.01, that would do two things: It would create a navigational TOC shown in every EPUB reader, and it would leave the TOC you placed on your page as an internal TOC.

  • Table of Contents Showing on Desktop, but not in iPad preview

    The table of contents was working just fine, meaning that it showed in both the work on the desktop and then when I sent a preview to the iPad.
    I'm not sure what I have done, but now, while the TOC shows on the desktop version, it doesn't show up in the iPad preview.
    Not sure where to start to solve this. Any help or tips would be great.

    Update: I don't know why, but it has started working again on its own. I suspect that shutting down everything and restarting helped, but I don't know for sure. I'm just glad it is working again! Peace.

  • Table of Contents Deactivated in HTML Formatted Emails - How to Fix?

    Problem Details: I produce a newsletter with an embedded table of contents.  In iOS7, users were able navigate via the table of contents and traverse to the corresponding articles.  This functionality has been lost upon the installation of iOS8.  My newsletter is embedded into the body of an email message.  The navigational hyperlinks that comprise the Table of Contents no longer function after upgrading from iOS 7 to iOS 8.  The issue still persists with updates to iOS8 updates since its release.  Hyperlinks continue to work, but not the navigational links in the Table of Contents (that navigate down to the respective content in the body of the email message).
    Note: Apple Support has been able to recreate this problem.  This problem did not exist with iOS7.  First started with the installation of iOS8.  I have delayed the upgrade to iOS8 on one of my remaining devices and I don't have this problem with my iOS7 device.  Despite being able to recreate this problem, the solution seems hopeless.  I have tried to get the attention of Apple many times to no avail.  My newsletter is ready by thousands of people each day.  This is a problem - Apple where are you??
    Note: This functionality continues to work in devices that still have iOS 7 installed, web browsers, android devices, blackberry devices, etc.  The issue is isolated solely to devices with iOS 8 installed.

    Hi Tom,
    I use MSWord to create the newsletter.  I then save it as a "Web Page" (html format) and place it into an Outlook email message.  The table of contents functionality works in Outlook, web browsers, Android devices, blackberries, iOS7 devices.  However, not with iOS8.
    I had a great talk yesterday with Apple support.  They again were able to see the problem on their end.  They have elevated the ticket to an engineer.  Hopefully they will figure it out.  It is kind of where I was 2 months ago on this issue with Apple (9/24/14), but somehow I have the feeling that the problem is in the right hands this time.  I will keep the board posted.  In the meantime, any ideas are welcome .
    Thank you.

  • How to keep superscript format when generating a table of contents

    Hi,
    I have a superscript ® in a title in a document that needs to be brought in the Table of contents. When I do generate the TOC, I cannot keep the superscript format in the TOC.
    I could cheat and replace it manually, but there has to be a way it stays with those properties every time I regenerate the TOC.
    Any idea how?
    Regards.

    re: I am trying to find the natively-superscripted Unicode R character and cannot find how to create it.
    There doesn't appear to be one.
    There is one for lowercase r: \u02B3
    Resources:
    Character Name Index
    decodeunicode.org . Last Entries

  • Preview.app Collapse All in Table of Contents

    Is anyone aware of a way to collapse all open sections that appear in the table of contents for a PDF file in Preview?

    I don't know of a way in Preview. In Adobe Reader you can install a plugin to add this functionality.
    http://www.planetpdf.com/mainpage.asp?webpageid=637

  • Format tab leader in table of contents

    I have a table of contents that uses tab leaders. There are two levels of header in the table of contents. One is bolded (major headers) and one is not (minor headers). The page numbers are not bold for any entry. For example:
    Major Header.................1
    Minor Header...........2
    Apparently if you make the header text bold, the tab leader is bold too. This means that the major headers have bolded tab leaders, and the minor headers have regular tab leaders. This makes them appear uneven. I would like to use regular, unbolded leaders for all entries, but I don't know how to modify the leader formatting without affecting the header text.

    You can override the heading style setting.
    In the major headers, type a space at the end of the text and before the tab leader begins.
    Select all of the leader and the text/nmber at the end of that line.
    Toggle Bold to Off.
    If your header levels use different type sizes, the leaders will still look different. You can also use the Size control in the format bar to match the size of the leader to that of the minor header.
    Not thoroughly checked. You may find this unstable in use, particularly if the content in this is edited.
    Regards,
    Barry

Maybe you are looking for

  • Is it possible to create a weighted score?

    Is it possible to create a weighted score? So for instance I want to have a score of 1 - 5 but then say numbers 3 and 4 are worth double or tripple. Is this possible? Many thanks in advance. S

  • Pavilion dv6-1230us Black Screen after installing Windows 7...Please Help

    Hi, I recently installed Windows 7 and everything was working fine until my computer went into hibernation.   Before this, I installed all the drivers and software from the HP website for my computer for Windows 32 bit setup.  After my computer went

  • Which camcorder do I get?

    I was curious about what sort of camcorder to buy.  I would like to purchase an HDD with a Sd slot.  Problem is, I've heard concerns about the JVC GZ-MG555 and Panasonic HDC-SD1 and the SDR-200 having some compatibility issues.  Can anyone recommend

  • How  Do I create a Action In PSE7

    I was wondering how to create an action in PSE7.  I've created them in CS4, but the stops dont work in PSE7.  ???

  • Phishing

    '''''Moderator warning''' - I broke up those hyperlinks, they try to download a Trojan. Unacceptable in this forum. I filed a report about that URL being a phishing address.'' The web forgery link would accept the URL because it was too long... Phish