PDA

View Full Version : How to show pdf files



Flemming From
20-Feb-2005, 09:21 AM
Hi

Is it possibel to autoload a PDF dokument in a browser.

I need to make a window where i in the left side show a pdf dokument, and in
the right side a repport from WebApp.

Regards
Flemming

Marco
20-Feb-2005, 06:13 PM
Flemming,

Absolutely... Just point the browser to a .pdf rather than a .htm(l).

In this case, it sounds like you want to use frames. One at the top,
with some action buttons, one at the left with the pdf and one at the
right with an asp linked to your webapp. You can name all these
frames, and then you can (re)load the pdf on the left, based on
information from the webapp on the right.

Good luck,
Marco

Evertjan Dondergoor
23-Feb-2005, 05:33 AM
Alternatively you can use an object:

<body onload="Pdf1.SetShowToolbar(0);" >

<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" id="Pdf1"
width="500" height="250">
<span id="Span1">Failed to load PDF Control!</span>

<param name="_Version" value="327680">
<param name="_ExtentX" value="27887">
<param name="_ExtentY" value="19659">
<param name="_StockProps" value="0">
<param name="SRC" value="./pdf/batch30865.pdf">
</object>

If I've ever known, I forgot what all parameters are about. But the SRC and
width/height are obvious and things you might want to change.

Evertjan



"Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
> Flemming,
>
> Absolutely... Just point the browser to a .pdf rather than a .htm(l).
>
> In this case, it sounds like you want to use frames. One at the top,
> with some action buttons, one at the left with the pdf and one at the
> right with an asp linked to your webapp. You can name all these
> frames, and then you can (re)load the pdf on the left, based on
> information from the webapp on the right.
>
> Good luck,
> Marco

Evertjan Dondergoor
23-Feb-2005, 05:34 AM
And if you want to print:
<button id="PrintButton" onclick="javascript:Pdf1.Print(); this.disabled =
true;">Print!</button>


"Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
news:A9A4QMZGFHA.1248@dacmail.dataaccess.com...
> Alternatively you can use an object:
>
> <body onload="Pdf1.SetShowToolbar(0);" >
>
> <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" id="Pdf1"
> width="500" height="250">
> <span id="Span1">Failed to load PDF Control!</span>
>
> <param name="_Version" value="327680">
> <param name="_ExtentX" value="27887">
> <param name="_ExtentY" value="19659">
> <param name="_StockProps" value="0">
> <param name="SRC" value="./pdf/batch30865.pdf">
> </object>
>
> If I've ever known, I forgot what all parameters are about. But the SRC
> and width/height are obvious and things you might want to change.
>
> Evertjan
>
>
>
> "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
> news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
>> Flemming,
>>
>> Absolutely... Just point the browser to a .pdf rather than a .htm(l).
>>
>> In this case, it sounds like you want to use frames. One at the top,
>> with some action buttons, one at the left with the pdf and one at the
>> right with an asp linked to your webapp. You can name all these
>> frames, and then you can (re)load the pdf on the left, based on
>> information from the webapp on the right.
>>
>> Good luck,
>> Marco
>
>

Flemming From
24-Feb-2005, 03:26 PM
Hi Evertjan.

It works great, and gives the right result.

But i wish to print the whole thing (The pdf, and the WebApp repport), is
this possible.

Se the exampel in the attach word doc.

Regards
Flemming




"Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
news:BZb07MZGFHA.1248@dacmail.dataaccess.com...
> And if you want to print:
> <button id="PrintButton" onclick="javascript:Pdf1.Print(); this.disabled =
> true;">Print!</button>
>
>
> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
> news:A9A4QMZGFHA.1248@dacmail.dataaccess.com...
> > Alternatively you can use an object:
> >
> > <body onload="Pdf1.SetShowToolbar(0);" >
> >
> > <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
id="Pdf1"
> > width="500" height="250">
> > <span id="Span1">Failed to load PDF Control!</span>
> >
> > <param name="_Version" value="327680">
> > <param name="_ExtentX" value="27887">
> > <param name="_ExtentY" value="19659">
> > <param name="_StockProps" value="0">
> > <param name="SRC" value="./pdf/batch30865.pdf">
> > </object>
> >
> > If I've ever known, I forgot what all parameters are about. But the SRC
> > and width/height are obvious and things you might want to change.
> >
> > Evertjan
> >
> >
> >
> > "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
> > news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
> >> Flemming,
> >>
> >> Absolutely... Just point the browser to a .pdf rather than a .htm(l).
> >>
> >> In this case, it sounds like you want to use frames. One at the top,
> >> with some action buttons, one at the left with the pdf and one at the
> >> right with an asp linked to your webapp. You can name all these
> >> frames, and then you can (re)load the pdf on the left, based on
> >> information from the webapp on the right.
> >>
> >> Good luck,
> >> Marco
> >
> >
>
>

Sture Andersen
24-Feb-2005, 06:22 PM
I have no clue for you, Flemming. I just want to say that it looks cool!

-Sture

Evertjan Dondergoor
25-Feb-2005, 04:05 AM
Hello Flemming,

The object-thing is in fact an activeX component from Acrobat. When you have
Acrobat reader installed, you also have this component available. This
component will of course not be able to print anything outside of it.

So will you have to think of something else there.

Evertjan

"Flemming From" <ffrom@image.dk> wrote in message
news:EDQ2p8qGFHA.1952@dacmail.dataaccess.com...
> Hi Evertjan.
>
> It works great, and gives the right result.
>
> But i wish to print the whole thing (The pdf, and the WebApp repport), is
> this possible.
>
> Se the exampel in the attach word doc.
>
> Regards
> Flemming
>
>
>
>
> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
> news:BZb07MZGFHA.1248@dacmail.dataaccess.com...
>> And if you want to print:
>> <button id="PrintButton" onclick="javascript:Pdf1.Print(); this.disabled
>> =
>> true;">Print!</button>
>>
>>
>> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
>> message
>> news:A9A4QMZGFHA.1248@dacmail.dataaccess.com...
>> > Alternatively you can use an object:
>> >
>> > <body onload="Pdf1.SetShowToolbar(0);" >
>> >
>> > <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
> id="Pdf1"
>> > width="500" height="250">
>> > <span id="Span1">Failed to load PDF Control!</span>
>> >
>> > <param name="_Version" value="327680">
>> > <param name="_ExtentX" value="27887">
>> > <param name="_ExtentY" value="19659">
>> > <param name="_StockProps" value="0">
>> > <param name="SRC" value="./pdf/batch30865.pdf">
>> > </object>
>> >
>> > If I've ever known, I forgot what all parameters are about. But the SRC
>> > and width/height are obvious and things you might want to change.
>> >
>> > Evertjan
>> >
>> >
>> >
>> > "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
>> > news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
>> >> Flemming,
>> >>
>> >> Absolutely... Just point the browser to a .pdf rather than a .htm(l).
>> >>
>> >> In this case, it sounds like you want to use frames. One at the top,
>> >> with some action buttons, one at the left with the pdf and one at the
>> >> right with an asp linked to your webapp. You can name all these
>> >> frames, and then you can (re)load the pdf on the left, based on
>> >> information from the webapp on the right.
>> >>
>> >> Good luck,
>> >> Marco
>> >
>> >
>>
>>
>
>
>

Flemming From
25-Feb-2005, 05:01 AM
Hi.

Is it possible to make something in WebApp which convert this pdf-file to
jpg ore something like this.

Regards
Flemming

"Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
news:2o2spkxGFHA.1952@dacmail.dataaccess.com...
> Hello Flemming,
>
> The object-thing is in fact an activeX component from Acrobat. When you
have
> Acrobat reader installed, you also have this component available. This
> component will of course not be able to print anything outside of it.
>
> So will you have to think of something else there.
>
> Evertjan
>
> "Flemming From" <ffrom@image.dk> wrote in message
> news:EDQ2p8qGFHA.1952@dacmail.dataaccess.com...
> > Hi Evertjan.
> >
> > It works great, and gives the right result.
> >
> > But i wish to print the whole thing (The pdf, and the WebApp repport),
is
> > this possible.
> >
> > Se the exampel in the attach word doc.
> >
> > Regards
> > Flemming
> >
> >
> >
> >
> > "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
message
> > news:BZb07MZGFHA.1248@dacmail.dataaccess.com...
> >> And if you want to print:
> >> <button id="PrintButton" onclick="javascript:Pdf1.Print();
this.disabled
> >> =
> >> true;">Print!</button>
> >>
> >>
> >> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
> >> message
> >> news:A9A4QMZGFHA.1248@dacmail.dataaccess.com...
> >> > Alternatively you can use an object:
> >> >
> >> > <body onload="Pdf1.SetShowToolbar(0);" >
> >> >
> >> > <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
> > id="Pdf1"
> >> > width="500" height="250">
> >> > <span id="Span1">Failed to load PDF Control!</span>
> >> >
> >> > <param name="_Version" value="327680">
> >> > <param name="_ExtentX" value="27887">
> >> > <param name="_ExtentY" value="19659">
> >> > <param name="_StockProps" value="0">
> >> > <param name="SRC" value="./pdf/batch30865.pdf">
> >> > </object>
> >> >
> >> > If I've ever known, I forgot what all parameters are about. But the
SRC
> >> > and width/height are obvious and things you might want to change.
> >> >
> >> > Evertjan
> >> >
> >> >
> >> >
> >> > "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
> >> > news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
> >> >> Flemming,
> >> >>
> >> >> Absolutely... Just point the browser to a .pdf rather than a
..htm(l).
> >> >>
> >> >> In this case, it sounds like you want to use frames. One at the top,
> >> >> with some action buttons, one at the left with the pdf and one at
the
> >> >> right with an asp linked to your webapp. You can name all these
> >> >> frames, and then you can (re)load the pdf on the left, based on
> >> >> information from the webapp on the right.
> >> >>
> >> >> Good luck,
> >> >> Marco
> >> >
> >> >
> >>
> >>
> >
> >
> >
>
>

Evertjan Dondergoor
25-Feb-2005, 05:55 AM
That's a funny idea! Wouldn't have thought of that. Checked with google and
it seems possible:
http://www.pdftoall.com/pdf-converter.htm

Regards,
Evertjan

"Flemming From" <ffrom@image.dk> wrote in message
news:32TR2DyGFHA.1952@dacmail.dataaccess.com...
> Hi.
>
> Is it possible to make something in WebApp which convert this pdf-file to
> jpg ore something like this.
>
> Regards
> Flemming
>
> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
> news:2o2spkxGFHA.1952@dacmail.dataaccess.com...
>> Hello Flemming,
>>
>> The object-thing is in fact an activeX component from Acrobat. When you
> have
>> Acrobat reader installed, you also have this component available. This
>> component will of course not be able to print anything outside of it.
>>
>> So will you have to think of something else there.
>>
>> Evertjan
>>
>> "Flemming From" <ffrom@image.dk> wrote in message
>> news:EDQ2p8qGFHA.1952@dacmail.dataaccess.com...
>> > Hi Evertjan.
>> >
>> > It works great, and gives the right result.
>> >
>> > But i wish to print the whole thing (The pdf, and the WebApp repport),
> is
>> > this possible.
>> >
>> > Se the exampel in the attach word doc.
>> >
>> > Regards
>> > Flemming
>> >
>> >
>> >
>> >
>> > "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
> message
>> > news:BZb07MZGFHA.1248@dacmail.dataaccess.com...
>> >> And if you want to print:
>> >> <button id="PrintButton" onclick="javascript:Pdf1.Print();
> this.disabled
>> >> =
>> >> true;">Print!</button>
>> >>
>> >>
>> >> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
>> >> message
>> >> news:A9A4QMZGFHA.1248@dacmail.dataaccess.com...
>> >> > Alternatively you can use an object:
>> >> >
>> >> > <body onload="Pdf1.SetShowToolbar(0);" >
>> >> >
>> >> > <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
>> > id="Pdf1"
>> >> > width="500" height="250">
>> >> > <span id="Span1">Failed to load PDF Control!</span>
>> >> >
>> >> > <param name="_Version" value="327680">
>> >> > <param name="_ExtentX" value="27887">
>> >> > <param name="_ExtentY" value="19659">
>> >> > <param name="_StockProps" value="0">
>> >> > <param name="SRC" value="./pdf/batch30865.pdf">
>> >> > </object>
>> >> >
>> >> > If I've ever known, I forgot what all parameters are about. But the
> SRC
>> >> > and width/height are obvious and things you might want to change.
>> >> >
>> >> > Evertjan
>> >> >
>> >> >
>> >> >
>> >> > "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
>> >> > news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
>> >> >> Flemming,
>> >> >>
>> >> >> Absolutely... Just point the browser to a .pdf rather than a
> .htm(l).
>> >> >>
>> >> >> In this case, it sounds like you want to use frames. One at the
>> >> >> top,
>> >> >> with some action buttons, one at the left with the pdf and one at
> the
>> >> >> right with an asp linked to your webapp. You can name all these
>> >> >> frames, and then you can (re)load the pdf on the left, based on
>> >> >> information from the webapp on the right.
>> >> >>
>> >> >> Good luck,
>> >> >> Marco
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>
>

Marco
1-Mar-2005, 02:47 AM
I was thinking of another product...

This one takes a url and returns it as a picture:

Set page = Server.CreateObject("ABCDrawHTML.Page")
page.URL = "http://www.fbi.com/"
path = Server.MapPath("fbi.jpg")
page.Save path, 200, 150

See http://www.websupergoo.com/abcdrawhtml-1.htm

I was at some stage thinking of using this to create WebApp reports,
but then in a picture so it cannot be changed. All that needs to
happen is to fill in the url of the .asp page ;)

Cheers,
Marco


On Fri, 25 Feb 2005 11:55:30 +0100, "Evertjan Dondergoor"
<evertjan.dondergoor@dataaccess.nl> wrote:

>That's a funny idea! Wouldn't have thought of that. Checked with google and
>it seems possible:
>http://www.pdftoall.com/pdf-converter.htm
>
>Regards,
>Evertjan
>
>"Flemming From" <ffrom@image.dk> wrote in message
>news:32TR2DyGFHA.1952@dacmail.dataaccess.com...
>> Hi.
>>
>> Is it possible to make something in WebApp which convert this pdf-file to
>> jpg ore something like this.
>>
>> Regards
>> Flemming
>>
>> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
>> news:2o2spkxGFHA.1952@dacmail.dataaccess.com...
>>> Hello Flemming,
>>>
>>> The object-thing is in fact an activeX component from Acrobat. When you
>> have
>>> Acrobat reader installed, you also have this component available. This
>>> component will of course not be able to print anything outside of it.
>>>
>>> So will you have to think of something else there.
>>>
>>> Evertjan
>>>
>>> "Flemming From" <ffrom@image.dk> wrote in message
>>> news:EDQ2p8qGFHA.1952@dacmail.dataaccess.com...
>>> > Hi Evertjan.
>>> >
>>> > It works great, and gives the right result.
>>> >
>>> > But i wish to print the whole thing (The pdf, and the WebApp repport),
>> is
>>> > this possible.
>>> >
>>> > Se the exampel in the attach word doc.
>>> >
>>> > Regards
>>> > Flemming
>>> >
>>> >
>>> >
>>> >
>>> > "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
>> message
>>> > news:BZb07MZGFHA.1248@dacmail.dataaccess.com...
>>> >> And if you want to print:
>>> >> <button id="PrintButton" onclick="javascript:Pdf1.Print();
>> this.disabled
>>> >> =
>>> >> true;">Print!</button>
>>> >>
>>> >>
>>> >> "Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in
>>> >> message
>>> >> news:A9A4QMZGFHA.1248@dacmail.dataaccess.com...
>>> >> > Alternatively you can use an object:
>>> >> >
>>> >> > <body onload="Pdf1.SetShowToolbar(0);" >
>>> >> >
>>> >> > <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
>>> > id="Pdf1"
>>> >> > width="500" height="250">
>>> >> > <span id="Span1">Failed to load PDF Control!</span>
>>> >> >
>>> >> > <param name="_Version" value="327680">
>>> >> > <param name="_ExtentX" value="27887">
>>> >> > <param name="_ExtentY" value="19659">
>>> >> > <param name="_StockProps" value="0">
>>> >> > <param name="SRC" value="./pdf/batch30865.pdf">
>>> >> > </object>
>>> >> >
>>> >> > If I've ever known, I forgot what all parameters are about. But the
>> SRC
>>> >> > and width/height are obvious and things you might want to change.
>>> >> >
>>> >> > Evertjan
>>> >> >
>>> >> >
>>> >> >
>>> >> > "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
>>> >> > news:e86i11tnsfr6tisf50m6kbs200r8ejt8jo@4ax.com...
>>> >> >> Flemming,
>>> >> >>
>>> >> >> Absolutely... Just point the browser to a .pdf rather than a
>> .htm(l).
>>> >> >>
>>> >> >> In this case, it sounds like you want to use frames. One at the
>>> >> >> top,
>>> >> >> with some action buttons, one at the left with the pdf and one at
>> the
>>> >> >> right with an asp linked to your webapp. You can name all these
>>> >> >> frames, and then you can (re)load the pdf on the left, based on
>>> >> >> information from the webapp on the right.
>>> >> >>
>>> >> >> Good luck,
>>> >> >> Marco
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>>
>>>
>>
>>
>