Is it possible to have a hyperlink open in a new tab that is inside a pdf that is inside of a frame in classic asp? - pdf

I Have a classic asp site i am working on. The page has two frames one directly below the other. A Customer has to be able to view a pdf to continue onto the next page. To get to the next page they have to click on a hyper link inside of the pdf that is being viewed. If they cannot see the pdf then they have to download adobe reader which i have included a link to in the top frame.(The top frame has some text and the link) now the bottom frame(contains the pdf) this works fine except when i click the link that is in the pdf the page then opens in that same bottom frame that contained the pdf. It needs to be target _blank. Or whatever you would call it to basically either over ride the two frames and just open in the browser or open in a new tab or window which i cant get either to do. This problem is in IE and Firefox but in chrome it over rides the two frames and opens correctly. Is there any way to get this to occur in IE and Firefox?

I've found this resource about your issue:
http://forums.adobe.com/thread/853394
They say there's no target attribute to set. But they think (and i also think) that if you place a :
javascript:window.open('http://yoururl.com');
it should work, always if you can accept the security alert message (Abobe PDF is trying to execute a script... blah blah)
If your continue reading carefully it seems they solved the problem using Adobe scripting inside inDesign
Hope this helps...

Related

Cant Open multiple instances of ngx-extended-pdf-viewer

I am facing issues while using ngx-extended-pdf-viewer.I am displaying a pdf using this component.
And at the same time I want to display another pdf in a pop using ngx-extended-pdf-viewer.
The first pdf shows up fine but when I want to view another pdf in a pop up ,the pop up shows a blank screen and the pdf is viewed in the background that is it replaces the first pdf.
I want to view the two pdf's at the same time and the second pdf should view in the pop up.
How can I resolve this?
Short answer: that's not possible. The base library, pdf.js, pollutes the global name space, so there's only one instance of the PDF viewer at max.
But: I believe you can wrap ngx-extended-pdf-viewer in a web component. I haven't found the time to test this, but that should solve the problem.

Is there any way to display in-line PDFs in Firefox?

Quick description - My company has a webpage that we use for responding to emails and assigning them to people (team inbox basically). The page converts all attachments (that it can) to .pdf files and each attachment/page gets converted as it's own separate .pdf so we can navigate the pages easier (I guess? At least there's a way to merge them into one file, but that opens in a new tab). These .pdf files are displayed in-line. Currently I have to use another browser for this page, due to Firefox not supporting in-line PDFs. Can anyone please advise if they have found a way to view in-line .pdfs within Firefox? Thanks in advance.
See these pics for reference -
In-line .PDFs displaying in Edge (Chromium)
Firefox not displaying
Firefox actually supports embedding PDFs in <iframe>. So this might be a problem with how this web app is written.
This example page shows it working in Firefox: https://www.w3docs.com/tools/code-editor/1077

Disable PDF printing in Firefox by web developer

I am developing a web page to show PDF (in .NET platform). The PDF is inside a iframe. One of the requirement is NOT allow client to print the PDF. I have already made the PDF to be password protected (with pdfsharp). I further hide the toolbar by setting toolbar=0. In Chrome & IE, this works fine. But for Firefox, the story is totally different.
In Firefox, the toolbar will be shown even append #toolbar=0 in the src link. Further, the password protected pdf can be printed by simply clicking the icon in the toolbar.
Can anyone suggest some ways to disable pdf printing in firefox.
Note: I need to show the PDF in the webpage. So, download the PDF is not a option.
You will not be able to control the toolbar or the ability to print (not all PDF viewers respect the permissions set by the password) if you rely on the native browser or OS level PDF viewer by using an iFrame. Different browsers will interpret those settings differently. Even different applications within the same browser will yield different results (Chrome vs Dropbox in Chrome)
You'll need to display the PDF using something like PDF.js or another such library if you want any kind of consistency in appearance and behavior.

Combine multiple "functions" in a pdf hyperlink?

I would like to know if it's possible to combine:
#target="_blank" and #page=4
In my case: I have a button in a pdf with a hyperlink asociated, when you press the link, it calls another pdf. The problem is that in Chrome, I need to press Control+click to open the link... so I want to force a "open in new tab" when clicking the button.
clicking on https://something.com/file.pdf#page=4 works but don't open on Chrome viewer
clicking on https://something.com/file.pdf#target="_blank" works but don't open in the page I want
So I need to combine both of them to open the link in a new window/tab on the page I want.
When you follow this link:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
You'll find a PDF document issued by Adobe where they describe the different possibilities for URLs going into PDF documents. They also describe how you can combine them, with the regular syntax also used for URL fragments, so I would try:
https://something.com/file.pdf#target="_blank"&page=4

Print preview of my web page to pdf and save it on server side programmatically

I have a deceitfully difficult problem which I had thought it was easy one at the beginning and yet I have spent more than 3 days on and off in total.
what I simply need to do is to save the print preview of the page to PDF file on server side from code behind initiating by a button click.
I was expecting using an open source and then I thought there would be a code like xyzopencode.savepasgeaspdf(path) but I could not find it. I got really close to solution by saving the PDF but then I realized it did not save the picture it only saved the strings.
I tried the pdfsharp but as long as I see it draws the whole thing from scratch and I am nor sure if I can do it.
The reason I need picture compatible one is I have 3rd party signature controller on my page and my couple of attempts worked without them or any picture but when I added pictures they failed to show to picture or did not create the PDF at all. The perfect solution would be just saving what ever shows up in the print preview as PDF, just like the built in feature of Google chrome (but on server side).