how to export mutiple page attachements in xwiki 9.7 - xwiki

i am working on xwiki 9.7,i have created multiple pages but when i am exporting those pages images are not shown in that pdf.
like this "ServerName/xwiki/bin/export/WikiSpace/WikiPage?format=xar&pages=WikiSpace.WikiPage&pages=Sandbox.ProjectTest
&pages=Managers.Leaders&pages=XWiki.MyDashboard"
i am exporting multiple pages

You seem to have found a bug. Would you mind reporting it at http://jira.xwiki.org/browse/XWIKI so that it can get fixed?
Note that I think I've found some more info about it. If I call the following URL http://localhost:8080/xwiki/bin/export/Sandbox/WebHome?format=pdf(or http://localhost:8080/xwiki/bin/export/Sandbox/WebHome?format=pdf&pages=Sandbox.WebHome), then the image appears fine.
However if I call http://localhost:8080/xwiki/bin/export/A/B?format=pdf&pages=Sandbox.WebHome then the image doesn't appear. So it seems to be a context issue.
Thanks

i got the answer for exporting the image in case of multiple page ,instead of adding the image give the URL of that image then it will work fine for multiple page export

Related

how to use pdf.js or viewerJS to display pdf in browser

i need a tuto about using pdf.js or viewejs to view pdf via browser. I found viewerjs.org but it doesn't help.
Any help thx in advance.
Try out pdf.js as it is very simple. Download the latest version here.
To show the pdf files traverse to web/viewer.html and it should load its default pdf.
As to the question about how to show your pdf's use: viewer.html?file=relative/path/to/your/pdf.
Say for example inside the web folder(the one in which viewer.html is there) of your pdf.js you create a directory say named pdfFiles and in it you add a pdf named say mypdf.pdf in it then to display it use: viewer.html?file=pdfFiles/mypdf.pdf and it will display it.
Almost all browsers are supported. Look here to know more about which all browsers are currently being supported.

CMSMS Formbuilder Multi Page Form Not uploading Files

I have created a multi page form using the formbuilder module for CMS Made Simple.
The form is submitting all other fields correctly however the upload file inputs are not uploading to the uploads directory.
I have created other forms that work perfectly using the exact same settings so it seems there is a bug in formbuilder itself for multi page forms however I am unable to figure out what it is to be able to fix it.
Does anyone have any suggestions as to why the files are not being uploaded.
Once this is fixed it will also be attached to the email that is sent as the form is submitted but this is an easy fix (just un ticking the box).
Thanks in advance.
The issue is a bug in the formbuilder module itself. A request was made on the CMSMS forge but no replies have been received.
Unfortunately there is no fix so depending on the version of formbuilder you are using you will not be able to upload files if you have a multi page form.

Displaying PDF on website using pdf.js

I want to put a file sample.pdf on my website, and want it to be displayed using pdf.js. What I want is to display my own file like the demo, with a toolbar, zooming in/out, etc. So far I can't do that yet.
I did check out the helloworld example, but it simply shows the file like an image, without toolbar, zooming in/out, etc. When I put another file with many pages instead of helloworld.pdf, it just shows the first page.
I am not quite sure what you are looking for but I was able to get this working exactly like the demo. Although you may not want to use that example viewer for your project, you can use the working code as a starting point for your own requirements.
For a simple test you can just clone the project somewhere under a web server into a directory like myproject and visit http://yourservername.com/myproject/web/viewer.html. You should see the pdf appear. This can be a starting point to working with this project. I did this running a very basic Apache server on Linux.
If you are not looking for an example styled like that the demo above you can also see this jsbin from the docs that show how to do something completely customized with working next/previous buttons to move between the pages (as you mentioned you were only seeing the first page).
As a note, it seems that this library does not work properly with Safari. You can see an issue about it here. Unfortunately this makes it unusable for me now as I need to support all current browsers.
Also, remember to watch for the warnings concerning CORS.

how to add a pdf file and view it in a Page based application

Actually i want to load a pdf file and view it like similar to page based application.So can anyone suggest me how to do it with sample code.I searched i didnt find any documentation or any sample code.
You want to create eBook type of app. https://github.com/brow/leaves the link example shows how to load pdf file and show. and if you want to add more animation like page curl then refer example here http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

UNC Linking to Network Share in Chrome

I have a UNC link something like this on an ASP.NET page which links to an Network Share location. This link works perfectly in IE (surprisingly), and even in Chrome and Firefox if I copy/paste into the address bar, but the link is completely broken. I can't even right click to copy the link. I know this is a known issue, that was supposed to have been fixed several versions ago, but I still need a work around.
I've been looking into adding "content-disposition", "attachment; filename=sample.pdf" to the header, but I don't know how to reference the actual file because the link still doesn't work relative to the server. It keeps trying to save the aspx page rather than the pdf. Ideas? I would LOVE help on this. Thanks ;)
Download
I'm actually implementing the link forming in the VB.NET codebehind, but I can't even get it to work properly with a statically defined link. What gives?
The Reason "\\Server\AppShares\Files\sample.pdf" is not excepted is that it is not a valid URI so not acceptable in a html link. The correct format is file://Server/AppShares/Files/samples.pdf http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx provides a guide on translations from UNC paths to URIs and back again