Iโll try again, since I got no reponse last time:
Is it possible to use PDF as background image for XY (pins)?
I managed to get the PDF in as background image through generating an URL, but the pin will then not stick to the same location when zooming in and out.
Anyone with suggestions/knowlage about this?
Based on your own experience, Iโd guess not.
Ok. You seem like quite experienced, so Iโll take that as a no;)
Iโll post it as a Feature request thenโฆ
Would be very handy for floor plans and similar drawings. They are always in pdfโฆ
The problem (I imagine) is that PDFs donโt have a fixed size, so the plotting measurements used for XY columns donโt work.
XY column points are plotted as a percentage of the image dimensions, but a PDF doesnโt have fixed dimensions, I donโt think.
My guess.
You might try asking support@appsheet.com.
Iโm using Integromat to convert PDFs in JPGs for further use as XY Background images.
Everything is automated.
Multi page PDFs get seperated in single Images.
Please let us know how did you do that? Step by step please
Hi Fabian.
Sure.
I use google drive, so I just encode the dynamic URL of the google drive PDF to a static URL.
To do so I use this expression in the โBackground imageโ of XY:
CONCATENATE(โhttps://www.appsheet.com/template/gettablefileurl?appName=โYour app name and numberโ&tableName=โYour table nameโ&fileName=โ,ENCODEURL(RIGHT(TEXT( [Your column with the PDF from google drive]),LEN(TEXT([Your column with the PDF from google drive]))-11)))
PS: The โ-11โ is to avoid getting the 11 first typings of the link to the drawing.
My link is to another table where I upload all drawings. This table is called โTegningerโ. So the link generated to this table is then โTegninger::My_file_pdf/171f13edโฆโ So the -11 removes โTegninger::โ
Butโฆ please explain back how you automaticly made PDF drawings into JPGs. As much details as possible if you canโฆ
PS: Note that the file is no longer secure after this. I tried. When generating static URL, the new url is public on internet. (But of course hard to findโฆ)
@khuslid I now learned that we can use PDF files as background images. Thank you
I try to explain here
So just to post an update on this issue since it was solved through support. Previously when you wanted an app image to be the background image for an XY column, you needed to construct the URL to https://www.appsheet.com/template/gettablefileurl with your app name, table name, file name, etc.
There has been a recent change to start constructing full, signed URLs for image and file column values for security before they are passed back to the client. This means that for XY columns you no longer need to construct the full URL for the background image. Instead, you can now just reference or de-reference to the image column. This is what fixed the issue in this case.
Hi @hugheshilton We dropped a support email earlier, but weโre experiencing low image quality when applying this method.
Great improvment. Thanks:)
Thatโs cool. Thank you for that improvement. Thatโs way easier AND more secure.
As @Grant_Stead mentioned, the image quality is low.
If you use PDF file, itโs somehow distorted / warped.
You need at least one forced sync.
Here is a demonstration
EDIT: You can even upload a SVG file and use it as the Background Image for XY. But if you zoom in and out it is duplicating itself.
Great video @Fabian. Thanks!
what is worse than it is cropping the edges is that it also โfoldโ on the middle when using PDF, but yes great video
For all of youโฆ We made a fix for this and it should go into production today. Using word from Hughesโฆ โNo more blurry map images anymoreโ.
@Aleksi @hugheshilton
Images are no more blurry. Thank you for that.
PDF still get cut off and are rendered wrong when you zoom in and out.
SVGs are still rendered endlessly.
Can you confirm my statement in my Video that we need 2 syncs before we can set a Pin on an Image we load up?
To me it seems like itโs just getting lucky with the PDF and using the thumbnail preview of the PDF somehowโฆ But it will be good to hear what Appsheet thinks, especially like what would happen with multipage PDF?
User | Count |
---|---|
18 | |
14 | |
11 | |
7 | |
4 |