Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 08-15-2015, 05:08 AM   #1
karimnaguib
Junior Member
karimnaguib began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2013
Device: N/A
[Content Server] Opening PDF in Browser instead of download

I was wondering if there's anyway I can stop the content server from auto downloading PDF books, instead I would like to have the option to open in browser, especially Chrome.

Any help with that ?
karimnaguib is offline   Reply With Quote
Old 08-15-2015, 11:34 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by karimnaguib View Post
I was wondering if there's anyway I can stop the content server from auto downloading PDF books, instead I would like to have the option to open in browser, especially Chrome.

Any help with that ?
You don't understand how browsers work.
PDF is a file, not a page. The whole thing has to 'download' before it can be opened. Inside your browser, it may just happen silently, then use a PDF plugin to render inside the browser.
The file then gets marked as a king of trash for cleanup.
Want to view again later? Another full download
theducks is online now   Reply With Quote
Old 08-15-2015, 11:36 AM   #3
karimnaguib
Junior Member
karimnaguib began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2013
Device: N/A
Yea I understand that, my question is how to modify the htaccess or headers to enable Chrome or other browsers to do that instead of just downloading it
karimnaguib is offline   Reply With Quote
Old 08-15-2015, 12:13 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by karimnaguib View Post
Yea I understand that, my question is how to modify the htaccess or headers to enable Chrome or other browsers to do that instead of just downloading it
Don't you just tell Chrome (settings) what to do with a PDF (PDF Plugin or Mime type setting)?

some PDFs behaved poorly under Firefox (on XP), I changed a setting to always open in an external viewer (the flip of what you want).
theducks is online now   Reply With Quote
Old 08-15-2015, 05:10 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by karimnaguib View Post
I was wondering if there's anyway I can stop the content server from auto downloading PDF books, instead I would like to have the option to open in browser, especially Chrome.

Any help with that ?
Here's a solution to a similar problem, it may give you a clue ==>> Can't open PDFs in Firefox [...]

BR
BetterRed is offline   Reply With Quote
Old 08-15-2015, 10:58 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
As discussed in that thread, files that use "Content-Disposition: attachment" will not open in the builtin PDF viewer in Firefo and presumably Chrome.

I can confirm calibre delivers files using "Content-Disposition: attachment".

Code:
[eschwartz@arch ~]$ curl -I "http://127.0.0.1:8080/get/pdf/Clan%20Rathskeller%20-%20Kevin%20Hearne_726.pdf"
HTTP/1.1 200 OK
Content-Length: 151661
Content-Disposition: attachment; filename="Clan Rathskeller - Kevin Hearne_726.pdf"
Server: calibre/2.34.0.r24.g66b9085
Last-Modified: Thu, 06 Aug 2015 05:05:32 GMT
Date: Sun, 16 Aug 2015 02:55:10 GMT
Content-Type: application/pdf
eschwartz is offline   Reply With Quote
Old 08-15-2015, 11:01 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Google Chrome extension to disable Content-Disposition: https://chrome.google.com/webstore/d...clipplfi?hl=en
eschwartz is offline   Reply With Quote
Reply

Tags
content server, pdf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read e-books in content server not download alfaboy23 Library Management 6 02-25-2015 02:34 AM
Browser / Content Server Issue Sardog Related Tools 3 02-02-2014 02:11 AM
Content Server Download Template Maggie-Me Calibre 2 07-01-2012 01:42 PM
Content server download doesn't complete on Blackberry jsm555 Devices 0 03-13-2012 02:42 AM
How do I configure the calibre content server to download news? fabian Library Management 18 04-24-2011 02:01 PM


All times are GMT -4. The time now is 04:41 PM.


MobileRead.com is a privately owned, operated and funded community.