I am working on windows based application. Using VB.Net.
So the question is, I want to create/generate a Non-editable PDF from vb.net window application. Can anyone please suggest some ideas or helpful links... That could help to me to solve my problem.
Note: I have the idea of creating pdf file using read only but some software cracks it and make it read/write. So I do not want to do that
You can use ITEXTSHARP to generate the pdf files,
But there is no way to block a user from editing it explicitly.
There is one thing which you can do.
You can generate the password protected files, doing so you can restrict a user from editing it.
Find the below links.
http://www.aspsnippets.com/Articles/How-to-generate-and-download-PDF-Report-from-database-in-ASPNet-using-iTextSharp-C-and-VBNet.aspx
http://www.c-sharpcorner.com/UploadFile/d40a40/create-simple-pdf-file-using-itextsharp-library/
Or you can use http Response:
http://pdfcrowd.com/web-html-to-pdf-net/
Feel free to ask if you have any further question.
Related
I have a huge pdf file (152M) containing embedded videos. I reckon most of its size must come from the videos themselves. I want to make a lighter version out of it so that it's easier to share and send around, so I would like to remove the videos.
Is there a simple way to do it? In particular, using free tools? Possibly a one-off solution without needing to remove the files one by one?
I thought of using imagemagick for it, but I can't find how and I'm not even sure it's possible
Well, I could not find a way to do it. However, my original problem involved a pdf exported from a pptx presentation, so I managed to remove the videos from the presentation.
This does not answer the presentation, but I had opened a parallel question on askubuntu.com, I'll put the link here if anybody is interested: https://askubuntu.com/questions/1453755/stripping-a-pptx-presentation-from-videos-in-libreoffice-impress/
I am having trouble in trying to find the solution for the below described problem.
Annotate the PDF file when user clicks on specific location in pdf and then finaly save the pdf which in future opens at annotated location.
How to approach this?
What I have tried.
I have tried to find various libraries irrespective of programming language (since programing language is not the dependency)- found few libraries like minipdf in python, pdfbox in java to mention few relevant ones. Finally selected pdfbox since it seemed to be mature enough to provide the solution closeby.
There are various hurdles now how to get user the location clicked by the user? since after getting the location I can able to perform various actions like annotating at the clicked location and then saving the pdf on the same specific location.
It seems I have to write whole pdf javascript to approach it but again how to do so?
I had similar problem and have solved it the other way. In my case I am not opening PDF in Adobe reader, but in browser. So what I did is converted the pdf to html using python libraries (Let me know if you are interested, I will share different library names with their pros and cons).
Now that html can be edited easily. We can put hyperlinks, highlights everything there as source code is with us.
This workaround may be applicable to you if your front end is web based.
PS: Wanted to post this workaround as comment, but couldn't due to little less reputation count as of now. Hope, it won't be downmarked :)
I'm trying to develop a tool/web application such that it will import a PDF file and I need to select text and images available in PDF by selecting them with a mouse click and marking them as title,content and image with a button click (3 different button) where the marked contents and image will be copied to clipboard or will be pasted into a word document which is going to be a another part. So in which programming language is this possible to work with and carry on ?
I'd probably try researching pure browser-side solution using pdf.js and clipboard API.
Otherwise, you'd still need clipboard API in the browser and the server-side may actually be powered by any programming language which can be hooked into a web server and has a library to parse PDFs.
You said nothing at all about your prospective server platform but to name a few, .NET has PdfSharp which is able to read PDFs, Python has a host of tools available for it. After all, there exist a bunch of command-line utilities to extract data from PDF which can be called using any PL able to call external processes.
Note that this only appears to be a simpler solution than using pdf.js but note that unless your PDFs are really uniform (say, invoices created by some piece of software), and so you'll be able to make your PDF parser know which bits of data it has to extract and return, the parser will need to returl all the data it extracted to the client, and you'll need to somehow render it all there. May be it's exactly what you need but maybe not.
Since PDFs are really tailored for typesetting and not presenting information in a structured manner, I'd try to piggyback on an already hard-core PDF rendering solution which runs in the browser, so see above.
Our company's switching from traditional, lame Windows shared drive to a Linux install of Alfresco.
I'm the sole developer here (...go me!) and I would like to hear any thoughts on what I envisage being an interface, created by me, accessible by my team, and drawing on files stored in Alfresco, to modify some HTML files presented by the interface.
So, I would want to make use of file locking on HTML files loaded into my interface, and also the ability to save manipulated HTML files. Offering a version history via my interface would be a nicety, given that Alfresco itself can obviously be used to retrieve that data.
I saw WebDAV support, so I thought, "Hey! I could let my designers modify my pages, given team-decided boundaries!". It sure would beat Dreamweaver for this.
I should also probably mention that yes, we do have the ability to have our soon-to-be-installed Alfresco customised for my purposes, so if it is that this must happen, then any advice around that appreciated also.
Thanks for your thoughts, examples and the like.
The comment attached to this question is the answer I was after.
Our eTendering solution, www.monaqasat.com, currently works exclusively with PDF documents for various reasons, some of them being security. We are being asked if we can support DWF documents. For this to happen, we would need to find a way to automatically convert DWF documents to PDF, using some kind of Unix application.
Does anybody know any such application, preferably using Rails or Java?
Thanks,
.Karim
http://www.autodwg.com/pdf/
http://www.dwgto.com/
http://www.aidecad.com/
http://en.wikipedia.org/wiki/List_of_PDF_software
http://www.cogniview.com/convert-pdf-to-excel/category/pdf/
Suggestion would be to install a software printer call its APIs and pass dwf and get back pdf and then apply security as needed.
Autodesk has its DWF Toolkit available at
http://www.autodesk.com/dwftoolkit
It contains full source code in C++ to read & write DWF files, so it should be reasonably easy to make it run under Linux and to use a PDF library to write the output.