How to link a file in django-cms carousel slide? - carousel

I've created carousel in django-cms and need one slide to point to a file.
Inside link settings there are external link, internal link, e-mail and phone number but no file link.
Do you know how to do that?

Related

PDF file link question - can I link to a different page within the same file?

This question is about PDF format files, not JS or HTML. Inside a PDF file, I'd like to create a link to another page within the same file. This is useful for Table of Contents type page that needs to link to other pages. But the "Add Link" item in PDF editor in Acrobat doesn't seem to have this as an option -- only the opening of web links, or "documents" (external files, not the current one), etc. Welcome any pointers.
Of course, that's possible.
In the Link tool, you first set the active area (that's where you click to go to the destination.
In a first dialog, Acrobat asks for the properties of the active area. In the Link Action area, select Go to a page view. After clicking on Next, you get a next dialog, directing you to navigate to the target view (page and zoom factor). Confirm, and you have set up your linkā€¦

Save Copy of Quote PDF outside of WHMCS

I need to save a copy of the quote pdf from WHMCS to a location outside the WHMCS directory so that we can send a direct link to the quote pdf to the client.
This is how I want it to work.
We view the quote PDF inside WHMCS admin area
When the pdf is viewed, a copy is saved to www.ourdomain.com/quotes/999.pdf
Then we can send a link to the client directly to the quote at www.ourdomain.com/quotes/999.pdf
Currently, you can only view the physical quote pdf when logged in as an admin user and there is no way with any hook or includes to grab the pdf.
This can literally be done in one line of code inside of quotepdf.tpl inside your template folder.
This is very similar to the invoicepdf solution here and I tried it with the quotepdf and it worked first time!
Add this code to the bottom of the quotepdf.tpl and each time the quote pdf is viewed in admin, it will output a new version to the location defined in the path below.
$pdf->Output('/home/jucra/public_html/quotes/'.$quotenumber.'.pdf', 'F');

Update an existing PDF

I have an existing PDF template, and I want to add some text over the top of it in a specific location on a specific page. For example, an invoice template or a scanned document.
How would I go about this? I'm using Sheets if that narrows my options.
There is a lot of documentation on how to create PDFs from documents, but nothing that will take a particular PDF and put text over it.
A bit of blue sky thinking from my side. What if you were to do the following?
Manually:
Export the PDF as an image
Resize a Google slide to be the same shape as the image
Add the image to the google slide as a background image
In Code:
Make a copy of the google slide as needed
Add your Google sheets data to the slide positioned as needed on the slide
Export the Google slide as a pdf
I mention google slides, because Google docs to not have allow background images.
Another possibility with using Google docs is to build a document that looks like your invoice, then add to it tags. In your code search for the tags and replace them with data from your sheet. Even you could use a mail merge addon to do this if you didn't fancy writing any code.
In your Google Drive right-click on your PDF;
Open With > Connect More Apps > Search docusign > Left-click blue connect button and this should take you to Docusign.
Your PDF will then open with Docusign where you can manually add a signature or text to specific places.
Alternatively... You can use App Script.
Example,
Constructing a document using HTML and replacing the specific value with a variable which is collect from a Sheet or particular location. Writing the function to do this will allow you to interpret the HTML and replace the variable with the text or possibly an image. Then it would create this as a PDF.
There are many alternative ways to do this.
Here is one example on github;
Convert Google Doc to PDF using App Script

How to enter url in browser to open PDF file to bookmark

I entered a bookmark for a chapter title "Introduction" on page 2 and when I try to open the PDF file in a browser to this bookmark, it appears correctly in Chrome on page 2, but Safari and Firefox always open the file on page 1.
I'm using Acrobat X Pro. The url I'm using is:
https://www.mydomain.com/path/to/myPdfFile.pdf#nameddest=Introduction
Is bookmark the same as named destination?
Anyone familiar with Acrobat X Pro can shed some light on this?
How does one create a named destination if not by creating a bookmark?
I found the answer. A bookmark is NOT a named destination.
To view the named destinations:
http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7cab.w.html
Basically, you need to do this:
Choose View > Show/Hide > Navigation Panes > Destinations. All destinations are automatically scanned.
To add a named destination:
http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7ca7.w.html
Basically, do this:
Navigate to the location where you want to create a destination, and set the desired view. In the Destinations panel, choose New Destination from the options menu , and name the destination. Save the target document.

How do I hyperlink from a PDF file to a specific page in a PPT file

I have a PowerPoint 2010 file saved as a PowerPoint Macro-enabled show (.ppsm) file. I have a hyperlink on a particular page of the PPSM and I've linked it to a PDF file. Great, it all works.
Now I need to put a hyperlink in the PDF file that will jump me back to the specific page in the PPSM, but I can't seem to figure out how to do it. The information in another thread says to add "#15" (the page number) to the filename, but the link seems to put the entire file path. I also get an error that this is not a valid file name. I want to be able to just store the files together in the same directory and have them find each other with the file name, not the whole path.
All assistance gratefully accepted.
If you're running the slide show and link to a PDF file, the show is still running and sitting on the slide you linked from.
All you need to add to the PDF is a link that closes the PDF or possibly quits Acrobat/Reader altogether.
Open the PDF in Acrobat, add a link, choose Custom Link, click Next.
In Link Properties dialog box, go to the Actions tab
Select Action: Execute a menu item.
Click Add to get a list of available menu items, choose File, Close
or File, Exit.
If you need to return to some other page than the one you started on in PPT, it gets a bit trickier.