Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthoraef110
    • CommentTimeJul 23rd 2011
     
    Hello,

    I just discovered that the PDF exporter is not exporting images for some reason. I'm using Ulysses 2.06 (App Store version) on OS X 10.7.

    Under "Inline Styles" in the exporter, images only have the options bold, italic, underline, delete tags, delete text, and don't touch. Images aren't exported at all.

    Can anyone help?


    Many thanks,

    Albert
    •  
      CommentAuthoraef110
    • CommentTimeJul 23rd 2011 edited
     
    Also, links are not preserved during PDF export. Is there any way for exported PDF documents to have internal links?
    •  
      CommentAuthordirk
    • CommentTimeJul 25th 2011
     
    The images have a separate section in the exporter settings, "Connections to notes". If you enable the connections for images, they will be exported as explained in the screencast and the manual. Internal links in PDFs are currently not possible, but we'll have a look into this. I think it might require quite a few changes.
    •  
      CommentAuthorgoetz
    • CommentTimeJul 25th 2011
     

    Two small comments: The third Screencast covers exporting in Ulysses. The screencast was created with Ulysses 1.6. However, exporting remained the same in Ulysses. This screencast also explains exporting images in PDF. Additionally, exporting images and footnotes is explained in the section RTF, PDF and DOC of the Ulysses help.

    •  
      CommentAuthoraef110
    • CommentTimeJul 26th 2011
     
    Thanks, Dirk and Götz! It turns out I had overlooked changing the image tag to << >> rather than [[ ]].

    I'm curious why the square brackets are used by default for images in the PDF exporter; I thought Ulysses's standard syntax was << >> for images and [[ ]] for links. It's also that way in the menu (Edit --> Inline Styles --> Image). Is there a reason for this or doesn't it matter?


    Many thanks,

    Albert
    •  
      CommentAuthoraef110
    • CommentTimeJul 26th 2011
     
    I did just notice something a bit unusual in the PDF exporter, namely that additional text in the notes tags is added to the PDF file. For example, I use the following tag format since I usually do HTML export:

    <<image_name-[imagefile]-Image description>>

    The PDF exporter outputs the graphic with "-Image description" afterwards, including the hyphen. If I select "Remove tag" under Inline Styles in the exporter, it executes this command before exporting images, resulting in no images being exported.

    Is there a way to remove extraneous data from tags during export while still outputting images?


    Kind regards,

    Albert
    •  
      CommentAuthorgoetz
    • CommentTimeJul 26th 2011
     

    These are some of the subtleties of the exporters. For the RTF/PDF exporters, you reference an image in the text with <<image_name>> (assuming you set the start and end tags for images to << and >>, respectively). A note containing the image then has the following formatting: <<image_name-image_file>> (see the documentation for more info). The WebExport on the other hand, is much more flexible. You can configure your WebExport Templates and Presets any way you like. For example, you could set the description right in the text and not in the notes. Or you could add alternate texts to the images. This is all possible with the WebExport. By default, an image is referenced in the text with <<image_name>> and is referenced in the note as follows: <<image_name-image_file-image_description>> (the WebExport documentation goes in much more detail about this).
    We built the WebExport from scratch to be flexible in what information should be stored alongside the images and to allow you as users to customize it any way you like. The PDF exporter, however, is a bit older and does not have this capability (yet).

    The PDF exporter outputs the graphic with "-Image description" afterwards, including the hyphen. If I select "Remove tag" under Inline Styles in the exporter, it executes this command before exporting images, resulting in no images being exported.

    The tags for images and footnotes in the PDF/RTF exporters are actually special tags which don't require an Inline Style (as opposed to the WebExport, where images and footnotes are treated as Inline Styles). Thus, if you use the "Delete tags" action for the image Inline Style, the tags will be removed first and consequently, the image(s) will not be found anymore (because it is not enclosed in angle brackets anymore). Thus, no images are exported.

    Is there a way to remove extraneous data from tags during export while still outputting images?

    Unfortunately, no. What you could do is change the WebExport to remove the image_description part (for this you need to change the Note Format of the image Inline Style).

    •  
      CommentAuthoraef110
    • CommentTimeJul 26th 2011 edited
     
    Thanks, Götz, for these helpful details. My current configuration is image description embedded in notes for graphics, e.g., <<imagename-[actual image]-description>>. I realize that to output as PDF I'd have to delete the "-description" part from each note. With hundreds of documents in my project, that would be quite tedious.

    A solution would be to incorporate regular expressions into the search function. That way it would be possible to search for "-description>>" (whatever the description text may be) and replace it with ">>". Any chance of incorporating regular expressions, even in a limited form?

    I notice for instance the need to replace tags with newline characters. (I can do all this in BBEdit, which makes an ideal companion to Ulysses, but it would be nice to have this functionality built in.)


    Kind regards,

    Albert