Live data from Hacker News

PDF Viewing

github.com

21–30 of 63 posts

Re: PDF Viewing

#21

I don't understand it... what's the benefit of this as opposed to just embedding an iframe? And whats the role of pdf.js here? They seem to just show images of the pages - non interactive and non-selectable. When you are using pdf.js, you can actually get a nice embedded viewer exactly like firefox has (and similar to chrome). And the embedded pdf.js viewer would also be more secure than the iframe, if that's your co…

Perhaps PDF.js is being used on the backend to render the images of each page.

Re: PDF Viewing

#22

Any sane reason to store PDF files into git repositories? Why would you version binary files; version LaTeX, or whatever's generating your PDFs.

Versioning binary files is a wasteful, but people still frequently need to do it (or at least put a static, unchanging PDF into a repository). For example, I might get set of feature requirements in PDF form and include that in my repository just so anyone who clones it can have the same requirements file that I do.

In cases where you have to include a PDF, it's very helpful to have it be viewable inline on a page.

Re: PDF Viewing

#23

If GitHub continues on this track of making content available directly in the browser, the use cases are endless as a service. When someone, and someone will, makes git accessible to the general public, features like these will propel GitHub into the general consumer space.

Get ready to see this comment on 'shit HN says'.

Also, your grammar is terrible - http://grammar.ccc.commnet.edu/grammar/commas.htm

Re: PDF Viewing

#24

Any sane reason to store PDF files into git repositories? Why would you version binary files; version LaTeX, or whatever's generating your PDFs.

The alternative is to store pdf-from-client-v1.pdf, pdf-from-client-v2.pdf, etc

Re: PDF Viewing

#25
I'm not sure whether this is due more to the efforts of the PDF.js team or the Spidermonkey team, but I'm very pleased at the progress the project has made over the past year. Upon reading this story I happened to realize that I've had a 57-page PDF open in a separate tab for several days now on this five-year-old netbook with no performance or memory problems whatsoever (something that couldn't be said a year ago). I can't even remember the last time that I've had to resort to Foxit. Here's hoping that Shumway can do the same for Flash!

Re: PDF Viewing

#26

That gif went by way too fast. If anyone is confused like me: It looks like Github will now show PDFs inline. It took me a minute to figure out that the GIF was a demo (and this had nothing to do with rendering PDFs into realspace using a 3d printing robot), and the page was from github's official blog.

There really needs to be a standard "pausible gif" format for stuff like this

Re: PDF Viewing

#27
post #26

That gif went by way too fast. If anyone is confused like me: It looks like Github will now show PDFs inline. It took me a minute to figure out that the GIF was a demo (and this had nothing to do with rendering PDFs into realspace using a 3d printing robot), and the page was from github's official blog.

There really needs to be a standard "pausible gif" format for stuff like this

Isn't that a benefit and reason to use html5 video over gif formats?

Re: PDF Viewing

#28
post #20
post #6

Earlier quoted context omitted.

I've been using GitHub a lot lately for storing my class notes and this is really awesome. I use an app which allows Markdown/mathematical LaTeX and renders it to a PDF and previously they were impossible to view on mobile because of how raw assets are served.

Which app do you use?

Archimedes on Mac: https://itunes.apple.com/us/app/archimedes-latex-markdown/id...

Re: PDF Viewing

#29

Any sane reason to store PDF files into git repositories? Why would you version binary files; version LaTeX, or whatever's generating your PDFs.

I was really hoping for them to implement this, because I like to keep relevant scientific papers next to the code. If for example I were to implement an algorithm described in a publicly available paper, I'd much rather have it sit right there in the repo instead of having a link to some other site (which may or may not be reachable at any future point in time).

Also I view PDFs as only "half binary". It's just a bunch of text streams, some of which may be compressed with deflate. (Granted, there's also stuff like embedded images, fonts, etc.)

Re: PDF Viewing

#30
post #5
post #4

This is unrelated to the news, but what's the best way to create this sort of screencast in OS X?

I used Quicktime to do a screen recording before taking that to GifBrewery to make the gif.

I do this too- works great and GifBrewery is a nice tradeoff of quality and usability.
Post reply on HN