ChartStudio does this easily. However, the chart is editable by anyone. Is there a way to host the graph in github and deploy it as github pages and then embed it into a Medium.com article? Tables and codes can easily be embedded by copying the url of github gist that contains the table/codes.
If they are public, GitHub pages can of course be easily integrated anywhere.
One option is to create a markdown page and integrate an object in there (f.e. an image) at github.com. You can upload it onto the page or do so via clipboard of your computer.
As next, you give it a name, f.e. stackoverflow_001.md and save it. You can find an example here: Markdown page with an image.
This URL can be used at medium.com in case you write an article. During your writing process, you add an embed at your article and paste in exactly this URL - that's it.
Related
I have followed the tutorial on this website https://www.wp-tweaks.com/display-a-single-cell-from-google-sheets-wordpress/ which allows to dynamically display values from a Google spreadsheet on a WordPress page using a simple shortcode:
[get_sheet_value location="Cell Location"]
This solution worked seamlessly until a single page contained hundreds of those shortcodes (I basically need the whole content of the page to be editable via the spreadsheet). I started getting 100% Errors by API method (based on the Google Metrics) and the content was not displayed properly anymore. I realize that sending hundreds of read requests after each page load is not ideal and will inevitably affect the load performance and that Google imposes quota limits too. Is there a way to bypass this issue? For example by pulling the values from the Google spreadsheet only once a day. Unfortunately, I don't have much coding experience but I'm open to all solutions.
Thanks in advance!
You could publish the sheet to the web and embed it to your website:
In your sheet, go to File > Publish to the web
In the window that appears, click Embed.
Click Publish.
Copy the code in the text box and paste it into your site.
To show or hide parts of the spreadsheet, edit the HTML on your site.
It would look like this (click on Run code snippet):
<iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vR3UbHTtAkR8TGNtXU3o4hzkVVhSwhnckMp7tQVCl1Fds3AnU5WoUJZxTfJBZgcpBP0VqTJ9n_ptk6J/pubhtml?gid=1223818634&single=true&widget=true&headers=false"></iframe>
You could try reading the entire spreadsheet as a JSON file and parse it within your code.
https://www.freecodecamp.org/news/cjn-google-sheets-as-json-endpoint/
Following on from this question and answer, I was wondering if it is possible to create an internal project post in Blogdown and hugo academic that is structured like a "Courses" document?
My current thought is to create a 'hidden' courses section that can be linked to by a project, however, relative paths like external_link: "courses/my-example-course" don't seem to work. I suppose I could provide an https link after publishing, but this seems inefficient.
Does anyone have any suggestions?
Thanks,
So it turns out that it just wasn't working in the RStudio viewer, which I use instead of Chrome because it is unusably slow on my laptop. It's opening another tab, but that's to be expected with an external link.
The working solution is to use external_link: /courses/my-example-course, and it's important to have the first /, otherwise it returns a 404 page.
Hi I have developed a wordpress site and noticed that when I visit PDF using this link: https://peppyplates.brookstonesites.co.uk/wp-content/fancy_products_orders/pdfs/74089_2.pdf
you are only able to see one page. If I then go into my file system and download the PDF it contains 5 pages. All 5 pages are duplicates I doubt this is an issue but thought it was worth mentioning.
When I visit the above link I want it to show all 5 pages. I'm not sure what is causing this issue. TCPDF is clearly creating the PDF correctly since when I download it the content is correct.
Could this be a wordpress issue and if so is there a fix because I don't want to have to go through the file system to get the file I need.
I am using a plugin called Fancy Product Designer to create the PDF, I have slightly modified it to add the duplicate pages which has worked a treat if I download the PDF.
It was a wordpress caching issue. I myst have created the PDF before adding the code to duplicate the pages. I created a new order downloaded the PDF and it contains the duplicate pages.
NOTE TO SELF: always clear server cache if there is no reason for the issue ;)
Bit of an amateur here, so I apologize in advance if this question is something that I should know, but don't. I am trying to find out if there is a way to add Open Graph info to pdf files that I have hosted inside my public_html folder.
To clarify, I have a wordpress site, and in it I have a page called "knowledge base" that has portfolio items that link to various helpful PDF files that I FTP'd into that wordpress folder. I realized stupidly, when I tried to share a link to the file on Facebook, that no image or description or title shows up. Is there any way to mitigate this? Can I add more info into the shareable URL? Can I add metadata into the PDF? Can I link to another page and somehow put the metadata there but then have it automatically redirect to the PDF link?
I will preface that I am not a programmer, so please be easy on me. Thanks in advance for any help...
My company purchased ActivePDF WebGrabber a couple of years ago to convert a classic ASP created HTML page into a PDF form. The only drawback with the tool that we continually run into is that the outputted HTML links are not hot. Are there any tools that do include hot-links within the HTML to PDF output?
According to the ActivePDF FAQ for Does WebGrabber convert hyperlinks into usable links in the output PDF?, the answer is no. There is a phrase confusing me at the end of the answer:
"To implement links in the final PDF,
the application would search for links
prior to the Postscript generation,
and append them once the PDF has been
generated using Toolkit."
Does that mean this is how to achieve it, or is this their theoretical but not tested solution? If this is the solution, has anyone done this that might be able to post some sample (pseudo-)code?
Edit: I should mention that we're open to a different tool, and we need it to be accessible via classic ASP and ASP.NET. I would prefer a solution in which the links are automatically hot-linked during PDF generation.
Looks like you can do it with the activepdf toolkit after the pdf is generated. I think this is what they are referring to.
Use the AddHyperlink function on the resultant pdf
AddHyperlink instructs Toolkit to add
a hyperlink in the current output file
that connects to a specified URL.
When clicked, the URL opens in a new
browser window.
edit
It would be easier to get a tool that actually does this here are some links
Open Source HTML to PDF Renderer with Full CSS Support
https://stackoverflow.com/questions/3178448/list-of-html-to-pdf-converters
In the old days, activePDF Server was the engine behind activePDF WebGrabber. activePDF Server is a Print-to-PDF program (hence the reference to Postscript) so the links were not live.
Beginning with the WebGrabber 2009 release, the dependancy on Server was removed and WebGrabber will now (versions 2009 & 2010) output intelligent PDFs that include hot-links within the HTML to PDF output.
If you can call into a web service then try the PDF Conversion Services. We are currently looking for beta testers for the html to pdf bit, just drop a line via the contact page.
I know it is an old question, but nowadays it should be sufficient to use
converter.PreserveLinks = true;
Where converter is a WebGrabber instance.