Using c# to write adobe plug ins - c#

from my understand, in order to write adobe plugin, we have to use c++ and the adobe sdk to write the adobe plug ins.
is that possible to use c#, link with adobe sdk to write adobe plug ins?

Yes you can! :)
It's a vast topic but you can begin with
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pdf
Page 21

Maybe with Acrobat as sunil5715 mentioned.. BUT I had the SDK for Adobe Illustrator v4. Back then you had to use Motorola's IDE named Code Warriors. You wont be able to use C# if you expect it your plugin to run on a Mac.
Maybe if you wrote a version in Mono it might run on a mac, but that is obviously not ideal.
Couple of notes (for Illustrator atleast) the code is unmanaged C++ and mixing unmanaged with managed code isn't the best practice. Also when you see the SDKs for Illustrator, Photoshop, After Effects you will see how dam good their (Adobe's) code is. Its spectacular! EXTREMELY good quality and is much better than the production code in many Microsoft products. So unless its a simple plugin I think you will need the low level abilities of C++.

Related

How to use OpenCV with C# (Commercial use)

I am trying to do a project in C#. For now, I want to just stream and save video from 2 PC cameras at the same time, but will be using more of OpenCV later on.
I came EmguCV, but they have separate terms for commercial license: http://www.emgu.com/wiki/index.php/Licensing:
Is there some other good alternative I can use to get OpenCV working with C#? thanks!
Have you tried OpenCvSharp? It is licensed under the BSD 3-Clause License, so commercial use should be no problem.
Some colleagues of mine use OpenCvSharp in their projects, and I haven't heard any bad from them about it.

How to Add and update the comments for the PDF file using c#

Now I am working in the process of Insert and Update the comment for the pdf file using c# code. I want to Know the any possible way to insert a comment inside the pdf file. Anyone Know about this, Please reply and some reference for this process.
Microsoft does have very limited support for PDF in operating system APIs and it has come only recently in Windows 8 for modern applications (now called UWP) and that support doesn't go as far as updating comments.
So you need to use the 3rd party library. As far as I can tell SharpPDF is the only free library worth something, but I failed to open many PDFs in it so I can't recommend it. So I think you would need to search for some commercial library, I am aware of several of them that can do the job (e.g XfiniumPDF, iTextSharp etc) and you'll get the documentation when you license them.

C# System.Drawing.Printing.PrintDocument to PDF Recommendation?

We are developing a C# Application that supports printing multiple views and we would like to add printing to PDF. This application has several 3rd party controls that handle the printing on their own so adding something like SharpPDf will not work for us we don't believe.
Either we need a 3rd party component that takes a Print document as source and produces a PDF from that, or we need a good 3rd party print driver.
I was surprised that Adobe does not offer a Distributable version of the PDF printer they bundle with Acrobat as that would be ideal. Anyone have recommendations as to what is the best path for us on this?
Thanks in Advance,
Jeff
UPDATE: So after all the suggestions and a ton of research here is what I ended up doing. We are buying a license to Novapdf sdk for our product (http://www.novapdf.com/en/pdf-sdk.html). I looked at over 15 different products and we went with nova because of the ease of which we could implement this in our code and the cost was right ($899 for novaPDF SDK Single Application v7.) The code could not have been simpler and you can start developing before you actually have the license. Thanks again to everyone for their suggestions.
as a PDF printer, you can use PDF Creator, that it's free:
http://www.pdfcreator.com/
However, i'm using SharpPDF and works fine.
The best free tool I found is ITextSharp. It's very easy to use, and has a lot of examples online.
You can find it information at http://itextsharp.com/
we are using Billzip http://www.bullzip.com/products/pdf/info.php. There is also a COM interface to define how you want the output file handled. Here is the COM object info http://www.biopdf.com/guide/.

Extract current page from Adobe Acrobat Reader and DejaVu Reader processes?

I want to make a C# program which will save bookmarks for pdf and djvu files.
How can I find out the current page number from the AcroRd32/DjVuReader process?
You may be able to do it via a the DDE protocol which is supported by Adobe Acrobat. Check the DDE Spec (Adobe Inter Proces Communication Support Paper) for Acrobat.
Now, if you are not familiar with DDE, let me give you a brief overview - it is a Microsoft (Windows) based IPC protocol similar to named pipes (Windows), COM(OLE), WCF, MSMQ (for IPC), RPC, etc.. Actually MSMQ is probably in my opinion the closest.
Basically with DDE you connect to a DDE server (local machine that's running acrobat), and send messages/commands to it. The trick to it is that DDE is not natively supported by .NET (any version). To get around this issue, you can use the NDDE wrapper (written in Managed C++) on CodePlex
I have sucessfuly been able to force AcroRd32.exe to open file, print specific pages to a network printer... etc using this library (NDDE), which is why I would recommend it. It sure as hell beats paying for a Acrobat Development Toolkit license.... grrrrrr.
In either case, I hope this helps. You might be able to do it via OLE automation & COM but I have never tried it.
Thanks,
<bleepzter/>
PS. Please mark my question if it has helped you in your endeavors :) Thanks!

How convert PCL generated by HP LaserJet 5 into PDF in C#?

I need to retire 15 years old system and preserve all data. It can only print documents into specific printer HP LaserJet 5. I can print documents into PCL files and looking for ways to convert all this files into PDFs programmatically. Preferably in C#. Can anybody recommend good library or command line tool? Preferably free ;-)
The commandline tool GhostPCL (part of GhostPDL), by the same developers as Ghostscript, can convert PCL to PDF. Recent changes in their public source code repository provide a fully integrated source tree encompassing Ghostscript, GhostPCL and GhostXPS. This includes MS Visual Studio *.sln and *.vcproj files to build all or part of their products. License is GPL or commercial (commercial licenses to be obtained from Artifex):
The simplest solution I found is VeryPDF PCL Converter http://www.verypdf.com/pcltools/index.html. It has command line mode, GUI (for command line), batch mode and only cost $125. My company has been pay for it. Hope this will help somebody too.
I've used Visual Softwares pcl2pdf on several projects, it worked well for me.
We are currently using Lincoln's PCL to PDF converter. It was simple to call and provides embed into our C# application. It also provides good feedback in terms of Events when a page has been converted etc so you can even add progress bars etc.
Lincoln PCL to PDF Converter
I've used PCL to PDF for Windows and OS X which is based on GhostPCL.

Categories

Resources