Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Server side rendering

377 views
Skip to first unread message

serdar

unread,
Dec 4, 2011, 1:26:17 AM12/4/11
to mozilla-d...@lists.mozilla.org
Hi,

I am in love with this library. Thank you very much.

I'd like to ask a question.

We have tens of thousands of PDF files and are currently rendering
them using Flash (pdf2swf). We would like to offer HTML5 version as
well and but we lack skill and time to develop such solutions.

What is the best way of integrating pdf.js into this?

1-) We would prefer converting them to HTML server side, and store
them (html and all the assets), but it seems very hard to do from what
I understand. It needs lots of modifications and browser behaviour
simulation. (I thought we could do so using node.js which is using V8
anyway)
2-) We can use the server solution and feed the PDF locally, and serve
it through proxy, but it will be resource (CPU etc.) intensive. Since
our site has a very large amount of user base , this would require a
new infrastructure. Do you agree?
3-) We can use the library itself, but I am not sure whether we can
feed the PDF locally somehow.
4-) Hack pdf.js-bot and generate assets command line using headless
firefox and store them.

Some solutions might not be feasible or a solution at all! If so,
please correct me.

What would you suggest? Is there any way to do this, without affecting
page load time much? As it will be an experimental feature, we of
course don't expect the same performance (in terms of page load speed)
that crocodoc and scribd have.

Thanks,

Julian Viereck

unread,
Dec 5, 2011, 1:26:42 PM12/5/11
to serdar, mozilla-d...@lists.mozilla.org
Hi,

it depends on what you want. If you just want to render PDF pages to images
and store them on the server, that should be to hard. Basically use a
canvas-library for NodeJS and PDF.JS and store the resulting images.

If you don't just want to server images, but also be able to select text
and have links working, it will be more work, but I could give you some
pointers, on where you have to look up the code.

Best,

Julian
> _______________________________________________
> dev-pdf-js mailing list
> dev-p...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-pdf-js
>

ass...@gmail.com

unread,
Mar 28, 2012, 7:45:50 PM3/28/12
to mozilla.d...@googlegroups.com, serdar, mozilla-d...@lists.mozilla.org
Hy there .. is there any update.. i have started this project using node.js .. and i need some help to finish it :)

ass...@gmail.com

unread,
Mar 28, 2012, 7:45:50 PM3/28/12
to mozilla-d...@lists.mozilla.org, serdar, mozilla-d...@lists.mozilla.org
On Monday, December 5, 2011 9:26:42 PM UTC+3, Julian Viereck wrote:

Julian Viereck

unread,
Mar 30, 2012, 3:17:49 AM3/30/12
to mozilla.d...@googlegroups.com, serdar, mozilla-d...@lists.mozilla.org
I don't know about any progress on this one.

> i have started this project using node.js .. and i need some help to finish it :)

Sure, where did you got stuck? Is the project online somewhere - on Github?

Julian Viereck

unread,
Mar 30, 2012, 3:17:49 AM3/30/12
to mozilla-d...@lists.mozilla.org, serdar, mozilla-d...@lists.mozilla.org
On Thursday, March 29, 2012 1:45:50 AM UTC+2, ass...@gmail.com wrote:
I don't know about any progress on this one.

> i have started this project using node.js .. and i need some help to finish it :)

0 new messages