PDF Display/Download

Author Message

Jim Rea

Wednesday 01 February 2006 11:46:38 pm

I am curious about something.

Whenever I open a link to a pdf file at any other destination on the web, using either Safari or Firefox, the pdf opens in a new window (or a tab). However, whenever I open a link to a pdf file stored in eZpublish, it generates a download to my local computer.

Why does eZpublish behave this way? And can it be changed to display the file instead?

Thanks - Jim

Kåre Køhler Høvik

Thursday 02 February 2006 12:49:16 am

How PDFs are handled by the browser is decided by the HTTP headers. Is it uploaded PDFs or generated PDFs you'd like to handle differently ?

Kåre Høvik

Jim Rea

Thursday 02 February 2006 2:33:31 am

Yes, I would like pdfs to be generated in a browser window rather than being downloaded. I don't have any knowledge of eZpublish's template system. Can you give me some direction on what I would need to change to accomplish this?

Thanks - Jim

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:20:21
Script start
Timing: Jan 18 2025 18:20:21
Module start 'layout'
Timing: Jan 18 2025 18:20:21
Module start 'content'
Timing: Jan 18 2025 18:20:21
Module end 'content'
Timing: Jan 18 2025 18:20:21
Script end

Main resources:

Total runtime0.6216 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.7891152.6094
Module start 'layout' 0.00480.0044 740.398439.4297
Module start 'content' 0.00910.6111 779.8281526.5391
Module end 'content' 0.62020.0014 1,306.36728.3438
Script end 0.6216  1,314.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4916160.0002
Check MTime0.00130.2078160.0001
Mysql Total
Database connection0.00070.117810.0007
Mysqli_queries0.574192.3500570.0101
Looping result0.00050.0792550.0000
Template Total0.585294.120.2926
Template load0.00200.319220.0010
Template processing0.583293.821720.2916
Template load and register function0.00020.024310.0002
states
state_id_array0.00140.221410.0014
state_identifier_array0.00150.240220.0007
Override
Cache load0.00160.2604130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.148020.0005
Fetch class attribute name0.00120.200640.0003
XML
Image XML parsing0.00090.152520.0005
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00250.4050150.0002
String conversion0.00000.001840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs