|
Preview PDF File in C Application
Message-ID:<1eaefccb-e61c-4aea-b64a-918133877cf3@f3g2000yqf.googlegroups.com>
Subject:Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 16:35:31 +0100
Hi,
Could someone tell me how can I preview a PDF file in a C#
application?
I am developing an application that puts an image in a PDF document.
The place where the image will be put can be selected manually, but I
need to preview the document to know if the image is overriding text
or something like that. Basically i need to preview the document
inside the application.
Thanks,
jo
Message-ID:<0fc5f031-9aad-481c-a644-fd13bbefd082@k8g2000yqn.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 16:42:04 +0100
On Nov 25, 10:35 am, johanasvens...@gmail.com wrote:
> Hi,
>
> Could someone tell me how can I preview a PDF file in a C#
> application?
>
> I am developing an application that puts an image in a PDF document.
> The place where the image will be put can be selected manually, but I
> need to preview the document to know if the image is overriding text
> or something like that. Basically i need to preview the document
> inside the application.
>
> Thanks,
>
> jo
I do not know of any such control either in the framework on in a
third party tool that I have use before.
Check if Adobe has a component that you can embed in your app. I'm
pretty sure it does exist.
Message-ID:<20081125131746.26a3df49@zest.spicerack.trausch.us>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 19:17:46 +0100
On Tue, 25 Nov 2008 07:35:31 -0800 (PST)
johanasvensson@gmail.com wrote:
> Could someone tell me how can I preview a PDF file in a C#
> application?
>
> I am developing an application that puts an image in a PDF document.
> The place where the image will be put can be selected manually, but I
> need to preview the document to know if the image is overriding text
> or something like that. Basically i need to preview the document
> inside the application.
Look into libpoppler (a portable, native library written in C).[0] It
should have a set of C# bindings these days that you can use; if not,
though, you can use P/Invoke on it. You'll need to distribute versions
of the native DLL with your deployed application, in 32-bit and 64-bit
versions so that people can run with the native dependency on both x86
and x86-64 platforms.
You may also want to check out PDF Clown, which is a library which is
apparently written both for Java and C#, with source code. Haven't
tried it, so I don't know how well it works.[1]
--- Mike
[0] http://poppler.freedesktop.org/
[1] http://sourceforge.net/projects/clown/
Message-ID:<3a7d1885-de3f-4361-b100-3a6315595753@k36g2000yqe.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 19:35:01 +0100
Check out iTextSharp library.
On Nov 25, 1:17=A0pm, "Michael B. Trausch" <m...@trausch.us> wrote:
> On Tue, 25 Nov 2008 07:35:31 -0800 (PST)
>
> johanasvens...@gmail.com wrote:
> > Could someone tell me how can I preview a PDF file in a C#
> > application?
>
> > I am developing an application that puts an image in a PDF document.
> > The place where the image will be put can be selected manually, but I
> > need to preview the document to know if the image is overriding text
> > or something like that. Basically i need to preview the document
> > inside the application.
>
> Look into libpoppler (a portable, native library written in C).[0] =A0It
> should have a set of C# bindings these days that you can use; if not,
> though, you can use P/Invoke on it. You'll need to distribute versions
> of the native DLL with your deployed application, in 32-bit and 64-bit
> versions so that people can run with the native dependency on both x86
> and x86-64 platforms.
>
> You may also want to check out PDF Clown, which is a library which is
> apparently written both for Java and C#, with source code. =A0Haven't
> tried it, so I don't know how well it works.[1]
>
> =A0 =A0 =A0 =A0 --- Mike
>
> [0]http://poppler.freedesktop.org/
> [1]http://sourceforge.net/projects/clown/
Message-ID:<20081125134344.3a3642bc@zest.spicerack.trausch.us>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 19:43:44 +0100
On Tue, 25 Nov 2008 10:35:01 -0800 (PST)
rhaazy <rhaazy@gmail.com> wrote:
> Check out iTextSharp library.
Looks like iTextSharp requires Adobe Acrobat Reader, which is why I
didn't include it in the list of options.
--- Mike
Message-ID:<7dfd6508-8960-4467-a333-a2181d8418a8@v42g2000yqv.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Thu, 27 Nov 2008 06:53:09 +0100
On Nov 25, 1:35=A0pm, rhaazy <rha...@gmail.com> wrote:
> Check out iTextSharp library.
>
iTextSharp is exclusively for creating PDFs, not rasterizing them.
abcPDF is a commercial library (by webSuperGoo) that is fantastic at
rendering PDFs as well as generating them.
Message-ID:<492c8c79$0$27217$9a622dc7@news.kpnplanet.nl>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 00:36:46 +0100
> Could someone tell me how can I preview a PDF file in a C#
> application?
1. Adobe Viewer (should be installed; then in Visual C# add Toolbox item,
select Adobe PDF Reader; it will be available from the Toolbox, from where
you can place it on your forms).
2. GhostScript; call either the exe or use a wrapper around the gs dll and
let it convert the PDF to an image file that you read back in the
application.
Govert
http://www.noliturbare.com
Message-ID:<emwYHe6TJHA.5024@TK2MSFTNGP03.phx.gbl>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 10:14:56 +0100
Hi Jo,
A fast way to preview a pdf is to use the pdf viewer your user
has chosen to view pdfs in IE. If you put an embedded IE in your
form it can handle the viewing by just navigating to the file you
want to show.
(this method is simple, but you might find it a disadvantage
depending on the user's settings in IE)
Groetjes,
Erik
<johanasvensson@gmail.com> schrieb im Newsbeitrag
news:1eaefccb-e61c-4aea-b64a-918133877cf3@f3g2000yqf.googlegroups.com...
> Hi,
>
> Could someone tell me how can I preview a PDF file in a C#
> application?
>
> I am developing an application that puts an image in a PDF document.
> The place where the image will be put can be selected manually, but I
> need to preview the document to know if the image is overriding text
> or something like that. Basically i need to preview the document
> inside the application.
>
> Thanks,
>
> jo
>
>
Message-ID:<i7udnWhxJsDBirDUnZ2dnUVZ8r-dnZ2d@posted.plusnet>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 10:26:28 +0100
johanasvensson@gmail.com wrote:
> Hi,
>
> Could someone tell me how can I preview a PDF file in a C#
> application?
AFAK Microsoft and Adobe hate each other at the political
level, and hence neither side has put any effort
into making such a thing easy.
For years Office apps wouldn't accept EPS!
BugBear
Message-ID:<bb21529b-2a43-42b9-b4fe-180a719fa2c4@p2g2000prn.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 21:59:25 +0100
You may want to take a look at PDFTron SDK (which is available
for .NET, JAVA, and C/C++ on various platforms). Download:
http://www.pdftron.com/downloads.html
There is only a single DLL that needs to be referenced from a project
(and there are no dependencies on Acrobat or similar).
As a strting point you may want to take a look at C# sample called
PDFView:
PDFView: http://www.pdftron.com/net/samplecode.html#PDFView
PDFViewSimple: http://www.pdftron.com/net/samplecode.html#PDFViewSimple
The same component can be used to add images to PDF among many other
things.
Rob.
> > Could someone tell me how can I preview a PDF file in a C#
> > application?
Message-ID:<1eaefccb-e61c-4aea-b64a-918133877cf3@f3g2000yqf.googlegroups.com>
Subject:Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 16:35:31 +0100
Hi,
Could someone tell me how can I preview a PDF file in a C#
application?
I am developing an application that puts an image in a PDF document.
The place where the image will be put can be selected manually, but I
need to preview the document to know if the image is overriding text
or something like that. Basically i need to preview the document
inside the application.
Thanks,
jo
Message-ID:<0fc5f031-9aad-481c-a644-fd13bbefd082@k8g2000yqn.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 16:42:04 +0100
On Nov 25, 10:35 am, johanasvens...@gmail.com wrote:
> Hi,
>
> Could someone tell me how can I preview a PDF file in a C#
> application?
>
> I am developing an application that puts an image in a PDF document.
> The place where the image will be put can be selected manually, but I
> need to preview the document to know if the image is overriding text
> or something like that. Basically i need to preview the document
> inside the application.
>
> Thanks,
>
> jo
I do not know of any such control either in the framework on in a
third party tool that I have use before.
Check if Adobe has a component that you can embed in your app. I'm
pretty sure it does exist.
Message-ID:<20081125131746.26a3df49@zest.spicerack.trausch.us>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 19:17:46 +0100
On Tue, 25 Nov 2008 07:35:31 -0800 (PST)
johanasvensson@gmail.com wrote:
> Could someone tell me how can I preview a PDF file in a C#
> application?
>
> I am developing an application that puts an image in a PDF document.
> The place where the image will be put can be selected manually, but I
> need to preview the document to know if the image is overriding text
> or something like that. Basically i need to preview the document
> inside the application.
Look into libpoppler (a portable, native library written in C).[0] It
should have a set of C# bindings these days that you can use; if not,
though, you can use P/Invoke on it. You'll need to distribute versions
of the native DLL with your deployed application, in 32-bit and 64-bit
versions so that people can run with the native dependency on both x86
and x86-64 platforms.
You may also want to check out PDF Clown, which is a library which is
apparently written both for Java and C#, with source code. Haven't
tried it, so I don't know how well it works.[1]
--- Mike
[0] http://poppler.freedesktop.org/
[1] http://sourceforge.net/projects/clown/
Message-ID:<3a7d1885-de3f-4361-b100-3a6315595753@k36g2000yqe.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 19:35:01 +0100
Check out iTextSharp library.
On Nov 25, 1:17=A0pm, "Michael B. Trausch" <m...@trausch.us> wrote:
> On Tue, 25 Nov 2008 07:35:31 -0800 (PST)
>
> johanasvens...@gmail.com wrote:
> > Could someone tell me how can I preview a PDF file in a C#
> > application?
>
> > I am developing an application that puts an image in a PDF document.
> > The place where the image will be put can be selected manually, but I
> > need to preview the document to know if the image is overriding text
> > or something like that. Basically i need to preview the document
> > inside the application.
>
> Look into libpoppler (a portable, native library written in C).[0] =A0It
> should have a set of C# bindings these days that you can use; if not,
> though, you can use P/Invoke on it. You'll need to distribute versions
> of the native DLL with your deployed application, in 32-bit and 64-bit
> versions so that people can run with the native dependency on both x86
> and x86-64 platforms.
>
> You may also want to check out PDF Clown, which is a library which is
> apparently written both for Java and C#, with source code. =A0Haven't
> tried it, so I don't know how well it works.[1]
>
> =A0 =A0 =A0 =A0 --- Mike
>
> [0]http://poppler.freedesktop.org/
> [1]http://sourceforge.net/projects/clown/
Message-ID:<20081125134344.3a3642bc@zest.spicerack.trausch.us>
Subject:Re: Preview PDF File in C# Application
Date:Tue, 25 Nov 2008 19:43:44 +0100
On Tue, 25 Nov 2008 10:35:01 -0800 (PST)
rhaazy <rhaazy@gmail.com> wrote:
> Check out iTextSharp library.
Looks like iTextSharp requires Adobe Acrobat Reader, which is why I
didn't include it in the list of options.
--- Mike
Message-ID:<7dfd6508-8960-4467-a333-a2181d8418a8@v42g2000yqv.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Thu, 27 Nov 2008 06:53:09 +0100
On Nov 25, 1:35=A0pm, rhaazy <rha...@gmail.com> wrote:
> Check out iTextSharp library.
>
iTextSharp is exclusively for creating PDFs, not rasterizing them.
abcPDF is a commercial library (by webSuperGoo) that is fantastic at
rendering PDFs as well as generating them.
Message-ID:<492c8c79$0$27217$9a622dc7@news.kpnplanet.nl>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 00:36:46 +0100
> Could someone tell me how can I preview a PDF file in a C#
> application?
1. Adobe Viewer (should be installed; then in Visual C# add Toolbox item,
select Adobe PDF Reader; it will be available from the Toolbox, from where
you can place it on your forms).
2. GhostScript; call either the exe or use a wrapper around the gs dll and
let it convert the PDF to an image file that you read back in the
application.
Govert
http://www.noliturbare.com
Message-ID:<emwYHe6TJHA.5024@TK2MSFTNGP03.phx.gbl>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 10:14:56 +0100
Hi Jo,
A fast way to preview a pdf is to use the pdf viewer your user
has chosen to view pdfs in IE. If you put an embedded IE in your
form it can handle the viewing by just navigating to the file you
want to show.
(this method is simple, but you might find it a disadvantage
depending on the user's settings in IE)
Groetjes,
Erik
<johanasvensson@gmail.com> schrieb im Newsbeitrag
news:1eaefccb-e61c-4aea-b64a-918133877cf3@f3g2000yqf.googlegroups.com...
> Hi,
>
> Could someone tell me how can I preview a PDF file in a C#
> application?
>
> I am developing an application that puts an image in a PDF document.
> The place where the image will be put can be selected manually, but I
> need to preview the document to know if the image is overriding text
> or something like that. Basically i need to preview the document
> inside the application.
>
> Thanks,
>
> jo
>
>
Message-ID:<i7udnWhxJsDBirDUnZ2dnUVZ8r-dnZ2d@posted.plusnet>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 10:26:28 +0100
johanasvensson@gmail.com wrote:
> Hi,
>
> Could someone tell me how can I preview a PDF file in a C#
> application?
AFAK Microsoft and Adobe hate each other at the political
level, and hence neither side has put any effort
into making such a thing easy.
For years Office apps wouldn't accept EPS!
BugBear
Message-ID:<bb21529b-2a43-42b9-b4fe-180a719fa2c4@p2g2000prn.googlegroups.com>
Subject:Re: Preview PDF File in C# Application
Date:Wed, 26 Nov 2008 21:59:25 +0100
You may want to take a look at PDFTron SDK (which is available
for .NET, JAVA, and C/C++ on various platforms). Download:
http://www.pdftron.com/downloads.html
There is only a single DLL that needs to be referenced from a project
(and there are no dependencies on Acrobat or similar).
As a strting point you may want to take a look at C# sample called
PDFView:
PDFView: http://www.pdftron.com/net/samplecode.html#PDFView
PDFViewSimple: http://www.pdftron.com/net/samplecode.html#PDFViewSimple
The same component can be used to add images to PDF among many other
things.
Rob.
> > Could someone tell me how can I preview a PDF file in a C#
> > application?
|