conversion of jpeg picture to pdf file - c#

I need to convert a set of jpeg images into a pdf file (which should contain all the jpeg).
I want to do it in .Net1.1 and programatically in C#.

You could use iTextSharp to create the pdf and add images to it. Here's a sample.

You could try ImageMagick.NET - it's a wrapper around ImageMagick, which can convert pretty much anything into anything. (I've only used the command line tool.)
If there's a problem with support for older .NET versions, just execute the command line tool yourself - it's the same thing.

Use one of them open source pdf library - http://csharp-source.net/open-source/pdf-libraries

Please try Aspose.Pdf for .NET in order to either convert the images to PDF file or add images to an existing PDF file. This works with .NET 1.1 and above. You can use it in any of your .NET applications using C# or VB.NET. It works on both 32-bit and 64-bit systems alike. Please try the component at your end.
Disclosure: I work as a developer evangelist at Aspose.

Related

Extract text form pdf using Foxit SDK

I am using Foxit SDK to extract the text from Pdf document .
Everything is okay but when I extract a pdf in other languages rather than English I don't get the correct output .
I have also used PDFBox in java but that gives me the worst output, output from Foxit SDK is better than PDFBox.
Are there ant other libraries which can solve the issue..?
Or there is some other solution.
Personally if you want it done right you have to pay for it. ComponentOne has a PDFViewer for WPF. Not sure what framework your working with since your tag is missing one.
ComponentOne PDF Viewer for WPF
You might want to try the trial version of Quick PDF Library to see how it performs on your documents. http://www.quickpdflibrary.com
QP.GetPageText(7) or GetPageText(8) returns pretty good results for most PDF files.
Andrew.
Disclaimer: I do some consulting work for Quick PDF Library.
If you are on windows, you can use the IFilter that adobe provides. Me, I used the IFilter adobe provides with the adobe reader 8.
Here is a link to the exact example I used
http://www.codeproject.com/Articles/13391/Using-IFilter-in-C
The performance was okay (I think. I haven't used many other methods). Takes about 15 sec for a 400 page PDF.

How to recognize barcodes in a PDF file

I have a PDF file with n pages, I need to split it to n files. On each page I have barcode, I need to recognize/read barcode. If I have two files with the same barcode I need to merge them.
Can anyone recommend an .net component or exe or something else that will help me? It can be commercial.
I have tried:
itextsharp - only split and merge files
dotimage/aspose/idautomation - only recognize barcodes and it very expensive
a-pdf - not always recognize the barcode and not merge/split two files.
Thanks
YOu will need at least two and probably even 3 frameworks.
I would use itextsharp to write out the pdf.
You could look at pdfviewernet to read.
And I would look at vintasoft for a cheap(ish) barcodereader.
You may try Aspose.Pdf for .NET along with Aspose.BarCode for .NET in order to achieve your goal quite comfortably:
Split PDF pages
Recognize bar codes
Merge PDF files/pages into a single PDF file
Both of these components work for any .NET Framework version on both 32-bit/64-bit systems. You can use them with any type of .NET application. The APIs are very simple and easy to learn and implement. You might get the idea from the above mentioned samples.
Disclosure: I work as a developer evangelist at Aspose.

Open PDF and print to PDF programmatically C#

I am developing an application that is able to open and display PDFs after I open them and print them to another PDF using CutePDF, but the originals are not viewable.
I am looking for a way to programmatically open a PDF file, and print to another PDF file (not necessarily using CutePDF, just printing to another PDF is the desired functionality).
This will be integrated into a C# .NET project. Are there any suggestions how to go about doing this?
Thanks.
You could use Office Interop and generate the PDF, when you say "print to another pdf", I imagine you mean just generate? Or are you saying spool them to a pdf print driver that essentially will just create a PDF to be saved.
Use iText, which is available in Java and C# versions. I have used the Java version successfully. I recommend the iText in Action book to help you get up to speed with iText faster. The book discusses only the Java API, but I imagine you will be able to learn the principles of iText from the book and then figure out the minor differences for the C# version.
To implement this you can use PDFFlow library for generating PDF files from C#. It has easy fluent syntax and many features.
Here are many examples of real complex PDF documents: examples
Good luck :)

making scanned pdf

i need to convert bulk of pdf documents into non-editable format(scanned) some one help me to achieve this using C#.net
Assuming that Chris's comment is correct and you're trying to convert PDF docs to pictures, I'd suggest taking a look at ImageMagick.NET which is a .Net wrapper around ImageMagick which is an open source library for doing things like that.
Never used it myself, but it looks interesting.

.Net library for saving an image to Mac's PICT/PCT file format

Does anyone know of a .Net library for saving or converting an image to the Mac PCT/PICT file format?
I can save a JPG to PCT/PICT format in Photoshop; and I see this LeadTools library for $995 dollars, but would like to spend less money than that for the simple convert. I don't need all the other features this costly library supports. http://www.leadtools.com/SDK/Raster/Formats/Raster-Format-MACPICT.htm
A client claims that need JPG images saved in PIC/PICT file format for their SASI yearbook Mac software.
Thanks!
Other than writing your own exporter, you may be able to use ImageMagick's QuickDraw PICT support.
I have seen their API used successfully from P/Invoke and COM; there is an example on CodeProject I just found that uses it from VB.NET.
If it helps, here is the file format for PICT. PICT v1.0 is substantially out of date (I believe it was deprecated sometime in the 90s). Inside Macintosh also has some details on the PICT v2.0 format, and I seem to remember hearing something about JPEG encoding in PICT.
Try this http://www.imagemagick.org/
It is a C++ lib, but they have .NET wrapper
ImageMagicNET

Categories