code displays PDF directly from Windows explorer but not when called by II6 to Internet explorer

E

Ed Hauptman

Hi .
I'm trying to generate a popup window of a .txt or pdf file that I extract
from a database.

If I have a html window called directly ( double clicked from explorer) it
generates the PDF ok.

<iframe src="ssg.pdf" style="width: 90%; height: 300px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0"
hspace="0" >
</iframe>


However if i run it indirectly from a web server iis6 or iis5 or parse it
through PHP it does not work and I get a blank page and an "object expected
error code" generated.

Any ideas. ? web server security issue?
 
R

Raymond Schmit

Hi .
I'm trying to generate a popup window of a .txt or pdf file that I extract
from a database.

If I have a html window called directly ( double clicked from explorer) it
generates the PDF ok.

<iframe src="ssg.pdf" style="width: 90%; height: 300px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0"
hspace="0" >
</iframe>


However if i run it indirectly from a web server iis6 or iis5 or parse it
through PHP it does not work and I get a blank page and an "object expected
error code" generated.

Any ideas. ? web server security issue?

why not doing like this:
<td width="175"><span class="Style1 Style3"><a
href="../images/menudumois.pdf" target="_blank"><img
src="../images/menu.gif" width="100" height="122"
border="0"></a></span></td>
<td rowspan="2"><img
src="../images/saveurslorraine/Saveurrestau.jpg" width="300"
height="225"></td>


from http://www.cardijn.be/cadre/menusaveurs.html
you just have to click on the "menu du mois" picture at right side of
the red arrow.
the click brings you :
http://www.cardijn.be/images/menudumois.pdf
in another window.
 
A

Adrienne Boswell

Hi .
I'm trying to generate a popup window of a .txt or pdf file that I
extract from a database.

If I have a html window called directly ( double clicked from
explorer) it generates the PDF ok.

<iframe src="ssg.pdf" style="width: 90%; height: 300px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
vspace="0" hspace="0" >
</iframe>


However if i run it indirectly from a web server iis6 or iis5 or
parse it through PHP it does not work and I get a blank page and an
"object expected error code" generated.

Any ideas. ? web server security issue?

Is ssg.pdf generated on the server before it is put in the Iframe, or
does it already exist? Do you get an error code, do you get a line
number, and if you do, what's on that line number? Do you have a URL?
 
A

Adrienne Boswell

Gazing into my crystal ball I observed (e-mail address removed) (Raymond
Schmit) writing in
why not doing like this:
<td width="175"><span class="Style1 Style3"><a
href="../images/menudumois.pdf" target="_blank">

Maybe because people like me hate it when authors use blank windows to open
up PDF documents? Let the user choose whether to open something in another
window or tab, or directly in the reader (as I do), if THEY choose to.

Better:
<a href="document.pdf" class="pdf" title="PDF Document">open document (pdf)
</a>.

CSS:
a.pdf {background-image:url(icon_pdf.gif); background-repeat:none;
background-position:right; padding-right:12px;}
 
E

Ed Hauptman

Thanks.
All these work now but the current issue is they don't work for .pdf files
but they work very nicely for .txt files. I get a PDF browser window say
there is something wrong with my server delivered pdf's ( there isn't) . I
think it is a II6 problem on my server . My browser works nicely for all
other PDF's so I know it isn't the browser.

bizarre=oh!
 
E

Ed Hauptman

OK>
Seems the problem now is in my self generated PDF's from my scanner.

The open nicely by acrobat directly but not the explorer plug-in.
Non scanned PDF's do not generate this error and txt files display nicely
now.

Shite!/
 
D

dorayme

"Ed Hauptman said:
OK>
Seems the problem now is in my self generated PDF's from my scanner.

The open nicely by acrobat directly but not the explorer plug-in.
Non scanned PDF's do not generate this error and txt files display nicely
now.

In which case you may be able to reexport them from Acrobat or similar.
If you scan as a TIFF and open in Photoshop, you can export as PDF and
ditto if you have Illustrator.
 
E

Ed Hauptman

Problem solved (kindof)
With Firefox everything works perfectly. IE of any flavour seems to hate my
PDF's and rejects served PDF's from my II6.
Probably some kind of security issue.

As I am the only one using the program: this is not really an issue.
Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top