loicminghetti / touchpdf Goto Github PK
View Code? Open in Web Editor NEWPDF viewer supporting touch gestures for jQuery
License: MIT License
PDF viewer supporting touch gestures for jQuery
License: MIT License
Is it possible to load the worker once?
I have a lot PDFs to display and there seems to be a lot of traffic caused by workers.
我想一次显示多页,而不是左右翻页
I want to show multiple pages at a time instead of turning left and right.
应该怎么做?
what should I do?
有解决的方法吗?
I want to make this responsive so it is 100% of the #myPdf div. And I don´t use any tabs at all.
So I check the #myPdf divs width so I can set that on .pdf-outerdiv, $viewer, $drag etc and all is fine.
But I can't get the canvas to work as it should?
It is only showing half of the pdf.
I have tried to set
var mypdfwidth=$("#myPDF").width();
canvas.width=mypdfwidth
and then changed this in many different ways but I simple don´t understand how it calculate the canvas!?
$(".pdf-canvas").css("transform", "scale("+(1/options.quality)+")").css("transform-origin", "top left");
I have even tried to set to the mypdfwidth.
I have tested a lot of things but I can´t get it to work.
What should the loadingHeight and loadingWidth in default be? Should it be as in the demo, 595 wide? and 841 in heigh? Or do I need to change that?
So any help really appreciated, thanks.
Hello,
It's great plugin what i am doing is showing pdf file in overlay screen is there any way of adding scrolling view of pdf?
Hi,
First of all thanks for your contribution.
I have an issue:
In a web page after selecting a pdf with a button, the pdf renders ok, but then If I try to change the file selecting another pdf file, the viewer shows the prevous pdf in its current page. It seems that the viewer is caching, because in the second selection the "loaded" event is not thrown. Any ideas?
Thanksin advance
How to modify the size of the button button on the previous page of the page because the button is small on the phone and not easy to click
I am getting the folllowing error
Uncaught Error: No PDFJS.workerSrc specified
at error (pdf.js:236)
at WorkerTransport (pdf.js:2522)
at Object.getDocument (pdf.js:1888)
at load (jquery.touchPDF.js:507)
at new TouchPDF (jquery.touchPDF.js:203)
at HTMLDivElement. (jquery.touchPDF.js:152)
at Function.each (jquery-2.2.3.min.js:2)
at n.fn.init.each (jquery-2.2.3.min.js:2)
at n.fn.init.init (jquery.touchPDF.js:146)
at n.fn.init.$.fn.pdf (jquery.touchPDF.js:122)
I use pdf.js right now and I wonder if it is possible to get pinch zoom to work somehow with just pdf.js?
Thanks a lot!
Hi Sir,
i've been working recently with reactjs and redux, i've a requirement to work on pdf using react and redux, pdf view should work in all devices.. can we do it swipe gestures etc in react way?
at least give an idea..
Hi
Double Tap on a page when zoomed in can be reset back? If so please help me to get it. please provide a snippet. What is the event and how to reset to original. Please get back to this as soon as possible .
Thanks.
I need the text layer of a PDF to be selectable. I've only just started using pdf.js but I note there's text_layer_builder.js and ui_utils.js available. How can I incorporate those with touchpdf?
I'm fine with turning off swiping and zooming (requiring users to use the buttons on the fool bar).
How to go a specific page ?
I would like to use touchpdf for my company, but MichaelBosello is right, the pdf's are not really sharp. Is it possible to fix this problem?
Dear Author,
I was wondering can I set the source parameter as a URL(like 'http://localhost/file/9/view') instead of a static resource (like 'http://localhost/static/9.pdf')?
Thanks.
How to convert byte array to PDF using Touch PDF.
Pl give a code snippet.
Urgent requirement.
Hi,
i have resolved the button issue. I have a requirement to use this control but i am not aware whether it supports the things which i am looking for, please do reply for the same. here is what i really need to know
if yes pl guide me how to do it.
Need your earlier response and thanks for the support.
I have a single page application where i have many pdfs. How do i call the clean up / destroy methods?
Is it possible to enable a button to download the original PDF document, similar to the download button in the standard pdf.js viewer?
why zoom shell the text? also in the demo
I have embedded this in a site I'm building. I've applied the most basic implementation without tabs etc.
The site is running wordpress which is already embedding jquery so the only change I've made really to the example code is to remove the script link to googleapis.com hosted copy.
Anything obvious I'm doing wrong here? You can see the test at http://www.anderson-sheppard.co.uk/preview/pdf-test/ (you need to login with preview123)
Hi,
After a lot of search, i found this plugin which meets my need.Sooo many thanks for that. But i am facing difficult to move to the next page when the pdf is zoomed.
My query is: I am using this plugin for IPAD and when i zoomed the pdf's page and trying to swipe it to the next page but not happening. so please help me how to achieve this.
I want to move to the next page by swiping when the page is already zoomed.
Please help asap. very urgent requirement.
Thanks in advance,.
Instead of using CSS, allow HTML notations for the tabs color and text color, eg.
{title: "Section x", page: 6, background-color: "#990000", text-color: "#999900"}
If you leave the color-attribute as it is, this won't affect existing use cases.
Hi,
this is actually not an issue.
I was trying to make the pdf fit the entire screen.
I am not able to make it working.
In PDF.JS there is an option called "Page-Fit" which scales the entire view to fit the screen.
Can you please give any pointer as to how it can be done in your application.
Thanks
need to access remote location pdf like http:://example.com/file.pdf getting error
Hi,
How to enable next and previous buttons on Ipad. Even Zoom + & - keys also not working. But my concern is i want the next and previous buttons should work on IPAD.
Please reply at the earliest.
Thank You.
I have a single page application where i have many pdfs. How do i call the clean up / destroy methods?
Appreciated early response.
Thanks.
I implement the touchpdf in my ionic project and works fine, but since 2 months ago, in android devices, stop the zoom in/out and I don`t now what happend.
is it possible to create different canvas for each page?
i want to show each page of pdf one after another how can i do that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.