Can a browser re-open a downloaded file rather than downloading the file each time it gets requested? - pdf

Here's the scenario. We have a table with a list of PDFs that are all pretty large (250mb each). In some cases, our links in the table go to the same PDF (but different pages).
Currently, when a user clicks on a link for a PDF, the browser downloads a new copy of the PDF. So if there are three links to three different pages in the same PDF, the browser will download all 250mb of the PDF fresh each time.
What we'd like to do is have the PDF download the first time, and then when the user clicks on another link to the same file, the previously downloaded version opens rather than downloading the same file again.
Is this even possible?

Related

How to edit and save a PDF in Firefox 107 with JavaScript?

With the latest version of Firefox (107) it is now possible to edit and sign PDF documents within the browser preview window.
But how can I upload an updated version of such a PDF file back into my Web Application?
Is there any kind of JavaScript API I can use?
There is much overlap between PDF web editing browsers and Browser editing PDFs
the data is pulled down locally and the binary application edits the data however for a PDF, that then requires a local save as a new combined PDF. here we can see a visual reminder.
In Firefox or Chrome there are slight differences but the core need is to resave the PDF as a clients local file.
Chrome has inking
And Firefox uses a slightly different overlay but again the conjoined local data must be first saved as a new PDF.
either by print
or the top right Save (again) AS
Thus to achieve your goal you need to ask the annotator user to upload their masterpiece. However you cannot easily do that in the sandboxed page (with work frame) it needs to be after a user signal such as press button here to upload where-ever IF you were able or bothered to save as a new pdf.

How to Download Pdf From Server, Show Progress, Store into Internal Storage Show into Pdf Viewer

I want to make an app with a lot of PDFs. Where one can read the PDFs online and also offline. Clicking offline read will download the first time but clicking next will open the PDF without downloading again. So how to write the code? It would be helpful if someone provided the source code of such an app.
enter image description here

Fetch a certain page of a pdf as an image from google drive

I have some 10,000 pages of hand-written scanned documents in google drive in somewhere around 70 pdf documents.
I am making a spreadsheet index of these, with one row for each page where I make notes of what is on each page, by actually viewing those pages, reading it, and every fully typing it if required.
I need a link, which I can put in the spreadsheet, which when clicked opens up a certain page of the pdf as an image only, and not the entire pdf, the pdf is in google drive. Is there something like this possible in Google Drive? Or should I manually download all pdf, split it into images, and then re-upload and use that?
(example - java -jar pdfbox-app.jar PDFToImage -format jpg -quality 0.75 pdffile.pdf ; and then upload all this)
I have a feeling it must be possible because when we open the pdf in browser, it loads pdf pages one by one, it takes time but it opens it in some custom image+text format, so it must be exported. Also I know there is one image version for each google slide and link is stable, so there might be something for pdf also I was thinking.
There isn’t a parameter or feature to link a pdf page in Google Drive file viewer.
Indeed as mentioned, you can link to a specific slide in Google Slides, however Google file types do have additional features.
That’s not the case for PDFs for example. A workaround I can think of would be to create a comment for each page and each comment will have its own id.
After creating the comment, you can click on the three vertical dots icon and click on Link to this comment.
Alternatively, you can send feedback to Google (On file viewer page, click on three vertical dots icon and then Send feedback to Google) making sure to describe the proposed feature.

PDF/A document with data is downloading incorrectly on Windows/Chrome. Have to open in Apache Acrobat Pro and save to fix

I am not sure how to phrase this question. We have code that creates a PDF that is PDF/A compliant, we put in some xml data into the metadata section. We then display the PDF in a preview window where the user can download the PDF. As part of our users process they open up the PDF in a text editor and search for one of the xml tag, "vendor" while all the data is encrypted, the tag value of "vendor" is still visible, such that the search would work. And then the users submit these files to US Courts that export the data.
I am on a Mac and I follow this process and it works perfectly.
The issue we have is that on Chrome/Windows users when they download the PDF and try to search for "vendor" it doesn't work. The search fails. If the user opens up the document in Adobe Acrobat Pro and then just hit Save, then open it in their Text editor it then works. The problem is our users are now complaining about having to do those two extra steps.
This only occurs on Windows users with Chrome. It does not happen on Mac/Safari.
I wish I could attach a sample, but the documents are extremely confidential, and I can't make one up with non confidential data as that would then not match what happens in our application.

Why does my PDF ask for a password after being retrieved from Visual SourceSafe?

PREFACE: Yes we're moving away from VSS in the next few months.
One of my web projects contains, as one of its files, a PDF. The PDF on our QA site is being pulled from VSS.
A QA tester recently told me he's being prompted for a password when he tries to open it. VSS says the file I have on disk is different than the one it has, so I updated it, but afterwards it's still being shown as different.
So basically VSS is mangling my PDF and the results are so wobbly that Adobe Acrobat Reader is confused and thinks it has a password.
I've tried adding it as Auto-Detect and as Binary. Same results.
Why does my PDF ask for a password after being retrieved from Visual SourceSafe and how can I prevent it?
Do you have the SourceSafe 2005 Update installed?
Handy list of known issues: http://blogs.msdn.com/richardb/archive/2007/06/06/list-of-bugs-fixed-in-sourcesafe-2005-gdr.aspx
The PDF bug was one of the most commonly requested hotfixes: http://support.microsoft.com/kb/925234
I've tried adding it as Auto-Detect and as Binary. Same results.
To be clear, are you adding a version of the file you know is not already corrupted? Even so, there are plenty of other bug fixes on the list above which can cause random file corruption -- try that first.
You can remove PDF password by this tool:
Advanced PDF Password Remover 5.0
Step 1: Import PDF files
Click the "Add File(s)" button, browse your computer to find the PDF files and load them.You can import as many as 200 PDF files into this program for every batch processing.The imported files are listed in the file list window as below.
Step 2: Set output folder
You can customize a folder to save the output files all together. The default folder is My Documents\Advanced PDF Password Removerr. Click "Brows" button to specify a folder on your computer, or you can make a new folder manually in the text box.
Step 3: Remove restrictions
Click "Start" button, and the files are processed one by one.
"SUCCEED" is displayed in the Result column after the removing process is finished.