Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there a way to link to an external application (so that it starts) when clicking on a link in a PDF file, e.g. in a beamer class LaTeX file?
I usually use the movie command of the multimedia package to open any video, audio, image file in an external viewer. But no, it will not open programs.
\frame{
\movie[externalviewer]{Audio Title}{audio.wav}
\movie[externalviewer]{Video Title}{video.mp4}
\movie[externalviewer]{Image Title}{image.jpg}
\movie[externalviewer]{PDF Title}{doc.pdf}
\movie[externalviewer]{Gedit}{/usr/bin/gedit} % does not work
}
It is possible! The following works well with my Acrobat, involves a bit PDF hacking. Just tested it on my Mac, you have to adjust it according your platform.
Simply define the following macro
\newcommand{\LaunchBinary}[2]{%
% #1: layer name,
% #2: link text
\leavevmode%
\pdfstartlink user {
/Subtype /Link
/Border [0 0 0]%
/A <<
/F <<
/DOS (xxx)
/Unix (xxx)
/Mac (#1)
>>
/S /Launch
>>
}#2%
\pdfendlink%
}
Fix the "xxx" to maybe #1 as well or rewrite it to suit your need. Then, to add a link somewhere in the PDF called "Start" which launches "demos/1/Wave1D.app", just
\LaunchBinary{demos/1/Wave1D.app}{Start}
This works well even for beamer class. With this, I can directly launch demo apps from a fullscreen presentation. Awesome!
Note again, though, this apparently only works with Adobe Acrobat (Reader). MacOS "Preview" does not work.
I'm quite sure you can't. It's very application-dependent, system-dependent, and other-1000-things-dependent.
Afaik only url works quite well...
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
Opera 29 comes with a built-in PDF viewer. PDFs are now opened with this viewer by default. How can I configure Opera to use an external plug-in (like Adobe reader) instead?
I could not find any preferences in Opera to configure how to handle certain mime types.
Opera's plug-ins are deeply hidden in a developer menu.
To show them (in Opera 29.0) select the following:
Main menu > "More tools" > "Show developer menu"
Main menu > "Developer" > "Plug-ins"
Button "Disable" for "Chrome PDF Viewer"
This brings back the system's PDF Viewer.
I am posting this answer from Opera 43.0, which has recently updated. For me, the "Disable" checkbox for the Chromium PDF Viewer cannot be toggled off.
Instead, in Settings > Basic > PDF documents, toggle Open PDF files in the default PDF viewer application checkbox. With that, PDF files are not open in browser, but in your default desktop application instead.
Using Opera 46.0 the check-box instead is found under: Settings/Websites/PDF documents
Just enable the check-box by the following settings-path
opera://settings/content/pdfDocuments?search=pdf
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am having an issue with Photoshop where the project shows in different colors than the project in save for web preview and explorer. I like the color of it in browser but I want Photoshop to show the same!
I have looked everywhere and tried to do it how they say but there is still no fix.
EDIT:
The color on the project border is #272425 As you can see here, Photoshop is not showing it correctly..
http://www.color-hex.com/color/272425
EDIT 2:
I was messing with the "Save for web" and changed Preview to "Legacy Macintosh(No Color Management) and the preview matched the project in the canvas. Here is a screenshot of it.
i had the same issue, try this :
open a new file and check the color mode at the beginning. then open up your file again!
When you save a file it gives you various colour management profiles depending on your set up (or needs). If you save without any colour management profile then the colours will be true
May be you are using CMYK color mode. try to change it. go to image then mode and click RGB color. RGB use for displaying purpose while CMYK Mode use for Printing purpose. Since this is web site item design, select RGB Color mode.
The export for web uses sRGB. You use US Web Coated. Change your document to RGB mode and sRGB profile.
The sRGB color is the smallest RGB color space.
You typically always work in the smallest space, even if your screen allows a wider RGB.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I have a bunch of pdf's I want to remove passwords from. Note that I know the password, so no need for brute forcing. I am working on a mac, so I would like to make an app to remove those passwords.
I have seen apps like wondershare's pdf password remover, so I know it is possible.
Is there a solution/library in the obj-c environment to remove passwords from PDF's?
ok. Here is the easy solution.
Open the pdf with google chrome.
Enter the password.
Print document using ctrl+p.
Choose Save as pdf option.
Done.
I think this would work for you. Both answers seem valid, I personally would opt for the second one.
Transcribed:
do shell script "pdftk secured.pdf input_pw foopass output unsecured.pdf"
I think you are looking for PSPDFkit. See this documentation here Documentation
You can do it in a way by iterating through all the pdf's and unlocking one by one.I am not sure if you are exactly looking for this type of solution, but may be helpful.
Iterate through all the PDf's and create a CGPDFDocument by passing the exact path of the pdf,
there is a method on CGPDFDocumentRef to check whether the document is password protected, which is "CGPDFDocumentIsUnlocked". If it is locked then unlock the file using the method:"CGPDFDocumentUnlockWithPassword".
save the unlocked document to a path and from then on you need not unlock each time you access it.
TNQ
Using Adobe Acrobat 9 Pro:
Open the document by putting the password.
Advanced -> Security -> Remove Security
Save the document
close and reopen with no password.
This is what i tried:-
Open the PDF file.
Enter the password for the first time.
Now to remove password "ctrl+p", then select this "Microsoft Print To PDF".
Then click on print,it will ask for location to save, give the details where you want to save and save it.
Done.
Note:-
To be more precise we don't need any browser for this it can be done in your local system.
Sometime you get some bank documents like form-16 etc, it will be password protected and you will not be having permission to modify due to security reason, due to some reason or might be you are using some organization system, so in that case this is helpful.
Steps to remove password security:
Right-click on the PDF file and select “Google Chrome” from the “Open with” menu or drag any password-protected PDF file (bank
statement) into your Google Chrome browser.
Now go to the File menu in Google Chrome and choose Print (or press Ctrl+P on Windows). Choose the destination printer as “Save as PDF”
and click the Save button.
Provide the file name and the file location and your duplicate PDF file will be saved in the specified location. Now upload the saved PDF
file.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
The community reviewed whether to reopen this question 3 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Is it possible to embed animated GIFs in PDFs? And how might I go about such a thing? are there any dangers I should be aware of?
For some more details on why I think it's a good thing and how it helps feel free to see this post. I didn't think it was appropriately well-formed enough for SE.
As an example - I'd like to put this into a description of quicksort:
(This animation is from wikimedia.)
I haven't tested it but apparently you can add quicktime animations to a pdf (no idea why). So the solution would be to export the animated gif to quicktime and add it to the pdf.
Here the solution that apparently works:
Open the GIF in Quicktime and save as MOV (Apparently it works with other formats too, you'll have to try it out).
Insert the MOV into the PDF (with Adobe InDesign (make sure to set Object> Interactive> film options > Embed in PDF) - It should work with Adobe Acrobat Pro DC too: see link
Save the PDF.
See this link (German)
I do it for beamer presentations,
provide tmp-0.png through tmp-34.png
\usepackage{animate}
\begin{frame}{Torque Generating Mechanism}
\animategraphics[loop,controls,width=\linewidth]{12}{output/tmp-}{0}{34}
\end{frame}
It's not really possible. You could, but if you're going to it would be useless without appropriate plugins. You'd be better using some other form. PDF's are used to have a consolidated output to printers and the screen, so animations won't work without other resources, and then it's not really a PDF.
You can use Tikz/pgfplots for creating animations in beamer. http://www.texample.net/tikz/examples/tag/animations/
Another possibility is LaTeX + animate package. You will need to provide the individual frames making the animation. The resulting pdf does NOT require any plugin, the animation is shown in Adobe reader
Maybe use LaTeX and try something like this
\documentclass[a4paper]{article}
\usepackage[3D]{movie15}
\usepackage{hyperref}
\begin{document}
\includemovie[
poster,
toolbar,
3Daac=60.000000, 3Droll=0.000000, 3Dc2c=0.000000 2.483000 0.000000, 3Droo=2.483000, 3Dcoo=0.000000 0.000000 0.000000,
3Dlights=CAD,
]{\linewidth}{\linewidth}{Bob.u3d}
\end{document}
where Bob3d.u3d is a sample virtual reality file I had. This works (or did) for movies, and I expect it might work for gifs too.
I just had to figure this out for a client presentation and found a work around to having the GIF play a few times by making a fake loop.
Open the Gif in Photoshop
View the timeline
Select all the instances and duplicate them (I did it 10 times)
Export as a MP4
Open up your PDF and go to TOOLS> RICH MEDIA>ADD VIDEO> then place the video of your gif where you would want it
A window comes up, be sure to click on SHOW ADVANCED OPTIONS
Choose your file and right underneath select ENABLE WHEN CONTENT IS VISIBLE
Hope this helps.
Having the ability to add small animations to a PDF (portable document format, independent of application software, hardware, and operating systems) would make it the perfect solution for making extremely useful user guides. Some text, some images, and some animations/videos, all in one file that can be read by anybody on any computer.
As of acrobat pro version x, a gif can be added under Tools > Insert from File. But the gif wont play, it only shows the first image.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I created a pdf in Latex. All is well, except that I want to have the generated pdf to open at 100% zoom level by default when opened in adobe pdf reader. Currently, it is being displayed at 57%. I have also noticed other instances of pdf generated by my other Latex code being displayed at zoom levels other than 100%.
Is this just an issue with viewer or does this deviation from 100% zoom has to do something with Latex code in itself. I mean, if you change the page borders or something (or that the document type is article and not book or something else); does that effect the default zoom?
I do not remember LaTeX defaults, but for sure you can control zoom level using the hyperref package if you are not already doing so. Direct link to manual: here
\usepackage{hyperref}
\hypersetup{pdfstartview={XYZ null null 1.00}}
Please note I do not have Acrobat Reader installed on the machine I'm writing these, so don't hesitate to report if somethings wrong. Also, assuming compilation with pdflatex.
Start your code in this way if you want to compile your text either with pdflatex or latex.
Adequate it to your needs.
\RequirePackage{ifpdf}
\ifpdf
\documentclass[pdftex,letterpaper,12pt]{article}
\usepackage{lmodern}
% \usepackage{textcomp}
\else
\documentclass[dvips,letterpaper,12pt]{article}
% \usepackage[active]{srcltx} % for dvi viewers supporting source code mapping
\fi
But you may want to set the default zoom size in your viewer preferences option.
Evince viewer allows to configure the buttons of the top bar, add the scaling buttons.
You have to use the \usepackage[pdflatex]{hyperref} package, compile with pdflatex (or rubber -d) and use the hypersetup setting I put in a comment above.