| <<<Back 1 day (to 2013/12/04) | 2013/12/05 |
robin_watts_mac | ehuang_Kyocera: Depending on the client you are using (I recommend chatzilla), you can click on the name in the left hand column, and that will open a new tab up for private messages. | 00:56.35 |
h31 | Hello. Can mudraw show annotations? | 16:22.32 |
| Or it is possible to use ghostscript to draw a PDF to an image with annotations on it? | 16:23.33 |
kens | Yes, GS will render a PDF file with the annotations in place, assuming they have an appearance stream | 16:24.19 |
| Also, yes mudraw will render annotations, if the annotation has an appearance stream. Annotaitons without an appearance stream may or may not render | 16:26.09 |
h31 | kens: I just added a note in Preview.app, it's ok? | 16:31.18 |
kens | I'm sorry I don't know what you mean | 16:31.33 |
| Do you mean you want that to be rendered with MuPDF ? I don't know, I'm not on a Mac, I'd suggest you try it and see. | 16:32.19 |
h31 | One moment, I'll make a screenshot | 16:32.35 |
| http://i.imgur.com/OEAQYam.png | 16:34.22 |
kens | Yes, that's a note | 16:34.32 |
robin_watts_mac | h31: With annotations in PDF there are 2 representations for the data. | 16:34.42 |
| Firstly there is a 'raw' form of the data that varies for each annotation type; for the ink one it's the sequence of points etc. | 16:35.11 |
| for the highlight it's the quadbox for the highlight and the color etc. | 16:35.23 |
| This data must always be there. | 16:35.31 |
| Secondly there is the 'appearance stream' form; this is the set of PDF commands used to actually drawn what that annotation looks like on screen. | 16:36.09 |
| This may or may not be in every PDF file. | 16:36.22 |
| Some PDF viewers will synthesise the appearance stream from the raw data, but not all. And some will only do so for some types. | 16:37.11 |
| So, both mupdf and gs have limited appearance stream synthesis capabilities; if your PDF file contains the appearance stream for every annotation, we will draw them, and you will be fine. | 16:38.19 |
| If you PDF file does not contain the appearance stream, then for certain types we will generate one and render that, and you will be fine. | 16:38.59 |
h31 | robin_watts_mac: I experimented a little and found that Preview.app doesn't add appearance stream, but Acrobat does. | 16:39.31 |
robin_watts_mac | For the other types, if no appearance stream is given, we will not render anything and you'll have missing content. | 16:39.39 |
| h31: OK, so whether MuPDF or gs will render that file correctly depends on whether we have support for that particular type. | 16:40.17 |
| We are adding support (to MuPDF at least) for more different types as we go. | 16:40.41 |
h31 | robin_watts_mac: can you tell for which types of annotations MuPDF will add an appearance stream itself? | 16:41.31 |
| Sorry for my bad English :) I.e. which types of annotations will work in MuPDF without appearance streams? | 16:42.19 |
| Or you mentioned "type" not about annotation type but about something else? | 16:45.13 |
robin_watts_mac | h31: Ink, | 16:51.47 |
| Highlight | 16:51.53 |
| Strikeout | 16:52.06 |
| and maybe text. | 16:52.12 |
| but this is a work in progress. | 16:52.24 |
| chrisl: I will be going for breakfast shortly, so I can be back for con-call with Miles at 8. | 16:58.26 |
h31 | robin_watts_mac: Thanks. I'm doing a course work of a system which should manage reports, i.e. students should upload pdf reports and professors should add their notes if reports contains mistakes. I'm using mupdf for previewing pdfs. I already managed to get annotation's text using pdfminer, so I will just write a text of an annotations below the page. | 16:58.35 |
chrisl | robin_watts_mac: okay, do you want company? | 16:59.09 |
robin_watts_mac | h31: OK. Alternatively, feel free to add more appearance synthesis code to mupdf. Open source etc. | 16:59.13 |
| chrisl: If you're awake, great. | 16:59.22 |
h31 | robin_watts_mac: ok, thank you for your help again! | 16:59.34 |
robin_watts_mac | np. | 16:59.38 |
chrisl | robin_watts_mac: yep, I am, just ping me when you're ready | 16:59.44 |
robin_watts_mac | how about now? | 17:00.31 |
chrisl | I need to get my shoes on, then I'm ready | 17:00.46 |
robin_watts_mac | chrisl: ok. will meet you by the hostess. | 17:01.01 |
chrisl | cool - see in a mo | 17:01.12 |
| Forward 1 day (to 2013/12/06)>>> | |