Hi,

* Alex Pedersen <[email protected]> [20.02.2017 18:21]:
> My main goals to achieve:
>
>  - View As PDF button
>  - Page with Available PDF downloads

I don't know if there's a better way, but you could use the following
workaround:

* You can create a named download link to a pdf file using the :download: role,
  for example :download:`pdf version <relative-path-to-the-pdf-file.pdf>`
  By using this role, you can create a list with all available pdf downloads on
  your own.

* You can also connect an image to a target URI (relative or absolute):

  .. image:: picture.jpeg
      :width: 20 px
      :target: path

  See http://docutils.sourceforge.net/docs/ref/rst/directives.html#image

* You can put small images/icons within a paragraph using a substitution:

  Text Text Text
  Text |symbol| Text
  Text Text Text

  .. |symbol| image:: path/symbol.png
                                  :width: 20 px
                  :target: path

  This works, but in this way you probably have to create a separate
  substitution for each pdf file you want to link to.

Hope this helps!

Greetings,

Bernhard

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to