Comments (5)
There is no support for embedding files in the generated PDF. At least not yet, but it's not on the planning either.
You can link to files on a website, but that might not be appropriate for all use cases. And that is unfortunately not straightforward to configure. I happen to have run into this requirement recently: linking to a sample PDF document from the showcase section of the rinohtype manual. This works because in this case it's possible to predict the URL of where this sample PDF will be hosted. The following may be of limited use to you, but practically I implemented this by means of the extlinks directive. This is the relevant code:
- extlinks setup in conf.py
- example use of the showcase role in showcase.rst
- because the file isn't being referenced in a traditional manner, I need to copy the sample PDF to the HTML build directory myself
The download role would be a good candidate for representing files to be embedded in a PDF. I haven't looked into whether that's even possible, and I'm not a fan of how the HTML backend implements support for this role.
from rinohtype.
Interesting stuff! I'm not sure if I can make this work, and the https://github.com/brechtm/rinohtype/issues/sphinx-doc/sphinx/issues/823 link comes up with a 404 error.
I think I may just use links to the documents on the internet, but of course then if the link breaks, so does my document!
More thought needed...
from rinohtype.
the https://github.com/brechtm/rinohtype/issues/sphinx-doc/sphinx/issues/823 link comes up with a 404 error.
Oops. I fixed that link now.
I think I may just use links to the documents on the internet, but of course then if the link breaks, so does my document!
If you need this for a commercial project, your employer can consider contracting me to develop the embedding of files in PDF. If you're interested, I would first investigate and give you an estimate of the amount of time required (and thus cost). Alternatively, I'm happy accepting a pull request that implements this.
from rinohtype.
See my email - I will close this issue for now
from rinohtype.
Reopening to eventually create a FAQ entry for this.
from rinohtype.
Related Issues (20)
- How do I add a rear page to my pdf? HOT 25
- Part of image missing.... HOT 3
- More indexing woes... HOT 11
- Incorrect entry in footer HOT 1
- Hyphenated word at bottom of page merged
- TypeError: Can't instantiate abstract class DynamicRinohDistribution with... HOT 9
- How do you use a custom template? HOT 1
- Support for reST raw:: HOT 1
- Add ability to print alternative text instead of error message for rst :image: directive HOT 1
- Table cause endless loop 'item too long to fit on line (page N)' HOT 6
- KeyError: 'desc_sig_space' HOT 3
- Zero width spaces lead to an attribute error
- The first word on a line is never hyphenated HOT 3
- Another: NotImplementedError: None:None the 'desc_sig_space' node is not yet supported (rinoh.frontend.sphinx.nodes) HOT 9
- Hyphenating a word across two pages concatenates the word part to the next one HOT 2
- Rinohtype crashes when processing a heading-only / empty body table HOT 2
- Improve error message for unsupported nodes HOT 4
- Repetition of words when using the fallback font
- References not resolved correctly for orphan pages HOT 2
- add hungarian language HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rinohtype.