PDF to Editable Documents [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I just want to ask if there is any resource which can do PDF to Editable Document conversion like in Word, Excel or powerpoint. Let me know if it is possible. My preferred architecture is NodeJS or Javascript. I have done following research:
Reading the .pdf in binary and extracting all information then creating the document according to that but it is a very long term solution.
I want to do the conversion in editable way so i don't want to do it using images mapping.
Do share if there is any paid resource available, and it must not be an API because i need to give offline support.
Regards
Ali Muqaddas

You can use unoconf (https://github.com/gfloyd/node-unoconv) for that.
Example from the library README:
unoconv.convert('document.docx', 'pdf', function (err, result) {
// result is returned as a Buffer
fs.writeFile('converted.pdf', result);
});

I don't think there is a clear solution for this.
I have also been looking for the same thing. I have found these 2 APIs that allow for this, but I'm looking for something offline too.
Nonetheless, these APIs might be useful for you or maybe they are exactly what you have been looking for.
PDFTron - Limited documentation and kinda unclear. I tried to work with this a couple of times but never managed to get it working, but if you can seeing from their demo, the results look really nice.
ASPOSE - Offers a free tier demo license, however, the conversion is a bit...weird. Meaning no images just text, therefore, the padding and margin are way off.
Doing the opposite is easy and FREE! (DOCX -> PDF), however, (PDF -> DOCX) seems to be (1) Expensive and (2) Impossible to implement offline.

Related

Can two people work on the same javascript project simultaneously? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
me and my friend have this develop a game in 18 hour competition on friday, and we have to use javascript (I don't know why) and it isn't very pleasant to work on the same project from two computers and exchange code over a network share folder, is there any way to have a sort of Google docs for javascript coding? Where we can both edit the same document in real time from two different computers? Any time appreciated.
You're referring to "version control".
A good tool (usually the de-facto) for that is Git.
You can then push your code to something like GitHub.
Lots of stuff you can do with this... You can both have individual branches, push them to GitHub, and then "diff" them, meaning you can see individual changes line-by-line and decide what you want to keep or discard. These can be merged to, say, a master branch which represents your final product.
use some sort of source control! Github is an excellent site to use GIT with. Other options include, but are not limited to, SVN and mecurial
SVN, GitHub, TFS are good tools for source control. They will also provide you the ability to check in/check out so that things can be merged in the background. So, if you and your friend are working on the same file and both commit the changes, they would be merged together. However, if you're wanting to see your buddies changes as he types, you're going to need to write something to do this. If you want this type of functionality, there's a cool library out there called signalR (http://signalr.net/). This may be a little overkill but I don't know any text editors out there that will allow you to see someone elses changes as they type. You could probably spin something up with ajax calls but again, that would be overkill and performance would be an issue.

Document Restful API created in Node.JS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have created Restful APIs in Node.js and now I plan to document them so they can be shared with others. I spent the past couple of days researching in to this and I found Swagger and started exploring what it had to offer. I really like Swagger-UI, It takes a JSON object and generates a document as displayed by this Demo. Another option is using the Swagger-Editor however this means writing out manually and I am not interested in that.
So basically I feel if I can generate the JSON object based on docstrings/comments I write in my api .js files I can then simply pass the JSON in to swagger-UI and have my beautiful document. I was looking for some tool that can help me achieve this. Any tool or tutorial would help out a lot. I have looked at all the tools listed on Swagger Open Source Integration Section.
Perhaps I missed something but would definitely appreciate if someone can point me in the right direction. I am not interested in design first approach etc. I already have existing APIs and would like to generate documents for them. I highly appreciate prompt replies from experienced users as I am really stuck on this. I have no sense of direction right now.
Additional Notes
I guess a perhaps a tool that can even help me create that JSON object would be a good idea but I do feel I might have missed something since swagger is so popular I am sure this must be done before.
So I have found a really nice tool that does exactly what i want. I hope others can find this post useful. I found something called api-doc swagger. It utilizes api-doc which converts docstrings in to a json object. This api-doc swagger tool goes further and converts that json object in to swagger json format which you can then pass in to the swagger-ui.

Is there some library available for IQR-Codes (not QR-Codes)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Recently I found this: http://2d-code.co.uk/iqr-qr-code/
This is a QRCode but an improved version. I use some QRCode libraries in some projects and it is a great technology but IQR-Code sound very promising. Less the size (sometimes size is a problem) and can contain more characters on a very small footprint.
To get into the new technology, see also this page.
I want to try and play with these new QRCode to find out if it is really useful and suitable to fit into one of my projects but I cannot find any library for it. I want to find a library that can be used in Android, Delphi, PHP, AS3 or/and javascript. Is there a 'hidden' link on the internet that brings me to such library?
The next thing I wonder about is reading speed. For example, the ZBAR and XZing library reads QR-Codes at razor speed. And what about error correction, is it accurate enough? Because it is using a smaller footprint, is it easy to read by a camera? Is it worth it to invest time in this new format?
Does have anyone more information about this or is there a demo project that I can download?
EDIT 12/01/2018:
Today I found YAB (Yet Another Barcode), initiated by fraunhofer institute. It is a 3D barcode with colors that can hold more data in a smaller form factor. It is free to use, source code available and deserves more attention, take a look at:
https://github.com/jabcode/jabcode
Or use the online demo:
https://jabcode.org/
Is there a 'hidden' link on the internet that brings me to such library?
After researching and googling, it seems that, unlike QR codes, the use of iQR codes is not free licensed by Denso Wave, the owner of the patent.
Is it worth it to invest time in this new format?
The format isn't really that new (it's been around since at least 2011) so, in my opinion, the lack of global success and the fact that it isn't freely distributed answers your question.

Javascript + HTML5 localstorage [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
So I'm searching for a good crash course on localstorage and interacting with it in Javascript. I want to build a to-do list webapp with some extra functionality but it would be just for 1 user. I don't want to mess with php/mysql and have the server doing anything. Links to tutorials would be best :-D
Here's a crash crash course I found very useful. It explains a bunch of HTML5 concepts, including localStorage, video tag, offline websites, forms, locations, canvas, and more.
http://diveintohtml5.org/storage.html
There is the offical documentation:
http://dev.w3.org/html5/webstorage/
For a quick demo with code: http://html5demos.com/storage also more html5 demos at the root of that site.
Note there are also things like the YUI 2 Storage Utility which abstract the storage for you (HTML 5, Google Gears, SWF) depending on what the browser supports:
The Storage Utility provides a
mechanism for storing significant
amounts of textual data, client-side,
whether or not your browsers supports
the proposed HTML 5 Storage
specification.
No personal experience but I did come across this link today: http://www.w3avenue.com/2010/05/07/html5-unleashed-tips-tricks-and-techniques/
Which links to this: http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-learning-about-html5-local-storage/
Have fun!
This small tutorial/code-snippet helped me to get started.
http://hacks.mozilla.org/2009/06/localstorage/
I would recommend one of the other questions asked here about how to store objects in localStorage. It helped me a lot as I am implementing a code editor that can store multiple files and last state of the user.
The stackoverflow question
Both answers posted are very valuable.
Some things to take into consideration:
When do you store data, after each key pressed or after some other specific action/event?
Use a temporary Javascript data structure or only interact with localStorage directly?
Store Data
//Syntax
localStorage.setItem(Key,Value);
Demo

Source code annotation tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a tool with which I can annotate source code.
I have some 3rd party source code (JavaScript) I need to understand and I don't want to change it (add inline comments) so that
line numbers can stay intact (for communication with others),
I can avoid accidentally changing something and
my annotations stand out compared to the authors comments.
Normally I would print the whole thing out an scribble on it, but the code is too long for that and I need to share it per email. I would be great if one could do some like that including being able to create "links" between so places in the code, possibly even visually with a lines or arrows.
If you would usually print it (if it were shorter), why not print it to a PDF and then use a PDF viewer that supports comments, like Foxit Reader? :)
I would use email to comment and pastebin to host and highlight #h# lines with links in the email text.
OR
some code-review tool (like codestricker or reviewboard for example)
You can certainly do what you want to with LaTeX and its listings package. But if you are not already a LaTeX user you might think that a hard way to go.
start a github project and post the code there, github includes annotation abilities OOB.
You have difficult requirements. I don't know of such tool. Nevertheless as a more general purpose tool, I can recommend Yui Doc (download here).
I'd build a glamour browser for it. (If spending half a day building it wouldn't be too much).
[edit]
Glamour is a toolkit for building browsers on a model. The model would here consist of the various parts of the file(s) and the comments and attributes you'd like to add. This would allow you to easily navigate through the source and comments, to select only parts with (or without) certain attributes. There is a video and slides. Official page, Source
How about using google wave with syntaxy (http://wave-samples-gallery.appspot.com/about_app?app_id=14008) bot?

Categories

Resources