I'm trying to use load images using fo:external-graphic XSL.
I tried few sample code.
sample-1
<fo:external-graphic src="url('abc.jpg')" width="340px" height="238px"/>
If i use static image directly..then It's working
sample-2
<fo:external-graphic src="url('http://220.226.207.170/mcraftuat/storageservice?a=readfile&databasename=mco&blobkey=f251fcf9-afa1-49cb-9a48-093cc0af049f')" width="340px" height="238px"/>
Here i'm trying to load some external image using blobkey. But its not working.
sample-3
<fo:external-graphic src="220.226.207.170/mcraftuat/storageservice?a=readfile&databasename=mco&blobkey=f251fcf9-afa1-49cb-9a48-093cc0af049f" width="340px" height="238px"/>
Above code also not working.
Please guide or suggest better option or method to load image available on third party site.
Please note that, I'm trying to load this and generating PDF using XSL & XML.
Any more info needed please comment accordingly. Thank you!
Related
I am trying to get html content with all images from wikipeida using wikipeida's official API. Currently, The api i use only return html content
This is what i am Using
https://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=google&format=json&origin=*
Thanks in advance 🙏
You can get text and images using the following query example
https://en.wikipedia.org/w/api.php?action=parse&prop=text|images&page=google&format=json&origin=*
Then for each image, you can get the url, which can be used to download the image. For example
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&titles=File%3ASemi-protection-shackle.svg&iiprop=url
Another example to get urls for all images on a page
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&rawcontinue=1&titles=google&generator=images&iiprop=url
I am currently working on http://rightinfo.co.in
When I am trying to share this site on a FB page it is showing an image that I have not included in my site.
I have tried by adding ?v=1 to the url and url shortner services.
In facebook debugger also , the image is not showing. But in actual sharing , unknown image is showing.
Please help me to solve this
Thanks
You have issue with tags Please check this facebook debugger it explains alot Facebook debugger
It's because the og:image (see here) meta tag is set. This tag defines the image, which will be shown on facebook.
To change this image, try to edit this tag, take a look at the theme settings.
Another way is to change/delete the image itself, e.g. via FTP.
You can find it here: WEBROOT/wp-content/themes/Morpheus/img/portfolio/folio01-preview.jpg
Btw, I see you are using wordpress, I'd consider using a SEO plugin, which makes a proper use of the og-tags as explained here
I'm using jsPDF to create a pdf that will be displayed on a web page but I can't seem to get it to embed correctly. The pdf does load if I put in doc.output('dataurl'); but it loads in a new window (I know that is what it's supposed to do). I made a div that uses object tags to hold the pdf and it does load a pdf file but it wont the load the jsPDF. What I'm trying to do is make an embedded pdf like the one on their main page, https://parall.ax/products/jspdf. What code would I need to add in order to get it to load in the object tags? It has to be possible since they have a working version.
p.s. I'm using JQuery if there is a quick shortcut in there.
Thank you for your help.
EDIT: Ok new problem. So I added this: $('#ID').attr("src", doc.output("dataurlstring")); It works but it makes a new problem. It doesn't always load. Sometimes it loads just fine, other times it will load the div but not the iframe or content. There aren't any errors and all my console.log() lines run. How can I fix this?
I have a web application.
On a page load,i need send a external pdf file to print .How it can make it work.
I have searched a lot , but couldn't find a working solution .
Anybody have an idea about this please??
Use this plugin This
On document.ready use
$('ul#tools li.print a').trigger('click');
Try on console first.
I'm trying to figure out how to grab the image from an external site, in my case, http://bikerace.com/tracks/[levelCode]
(as an example level code, nhx874, the url would be http://www.bikerace.com/tracks/nhx874)
Users on bikeracelevels(dot com) have to input the level code THEN upload a screenshot. I'm trying to remove this requirement by automatically grabbing the image based on the code they input, since I could append their input code to the url, then somehow find the image (since the only image on the page would be the one I want)
How could I accomplish this?
Thank you very much in advance!
Get this cross-domain AJAX plugin for use with jQuery: https://github.com/padolsey/jquery.fn/tree/master/cross-domain-ajax
Use it to load the page on bikerace.com/[levelcode], then select the image from the data as you normally would with jQuery.