Open linked PDF-Files from a PDF-File

P

Paul Kuebler

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
 
P

Paul Kuebler

Sorry for this bad post, but I copied source-code into
the post, and the result are question marks!!

Paul
 
C

Carl Prothman [MVP]

Paul Kuebler said:
Sorry for this bad post, but I copied source-code into
the post, and the result are question marks!!

Ahhh, I was wondering what you were doing! ;-)

Try copying the code to Notepad, then copy from Notepad to here.

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
 
P

Paul Kuebler

???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
 
P

Paul Kuebler

Hello Carl

The last post was also with a wrong sign, which produce
the question marks. I have no idea which sign this effect
produce.

I have also no idea on which way I could post my code,
because there is the problem with the links from the PDF-
file to other PDF-files, and this links have no effect. If
I click on the link, nothing is happen.
The links are no URL's, the links are pathes on the server-
disk.
Is this possible, or must I change the pathes to URL's.

Thanks
Paul
 
P

Paul Kuebler

Hello Carl

Thanks for the reply!!
I tested another way to solve my problem.
Our pdf-files are available on the net.
With the following link it's possible to open a pdf-file

http://patis.palfinger.com/ekat/5204/index.pdf

In this pdf-file are links to other pdf-files. If I
open this pdf-file the links open the other pdf-files.

I implemented following code in my ASP.NET application

string FilePath;
FilePath="http://patis.palfinger.com/ekat/5204/index.pdf";
Response.Redirect(FilePath);
Response.End();

The pdf-file is opened, but if I click on the links,
nothing is happen.

Have you any idea what's wrong in my code?

Thanks
Paul


-----Original Message-----


Try using Outlook Express (which is what I'm using).
Or you can try the Community Newsgroup via IE
http://msdn.microsoft.com/newsgroups/



Since folks are viewing the PDF via a browser, then I believe you
will need to put in a URL to each pdf file if you want the hyperlink
to work correctly. e.g.
http://mywebsite/pdf/myfile.pdf where
 
P

Paul Kuebler

Hello Carl

Thanks for your reply!!

The link on the Web works, but if I start an ASP.NET
application with the implemented code:

string FilePath;
FilePath="http://patis.palfinger.com/ekat/5204/index.pdf";
Response.Redirect(FilePath);
Response.End();

The first PDF file is opened, but the links to the other
PDF-Files don't work.

Thanks for help
Paul
 
C

Carl Prothman [MVP]

Paul Kuebler said:
The link on the Web works, but if I start an ASP.NET
application with the implemented code:
string FilePath;
FilePath="http://patis.palfinger.com/ekat/5204/index.pdf";
Response.Redirect(FilePath);
Response.End();
The first PDF file is opened, but the links to the other
PDF-Files don't work.

Paul,
Right, the above code will not change the hyperlink paths in the PDF file.
The hyperlinks in the PDF file need to be correct before being sending
the file out to the browser.

In my second reply on this thread, I posted some sample server-side code
which would open up a PDF file on the server, make some changes to it (TDB),
then write out the bits to the IIS Response stream. Did you try that code?

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
 

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,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top