Home All Groups Group Topic Archive Search About

.NET PDF toolkit that can compress images in PDF files..?

Author
9 Feb 2006 4:15 PM
Oenone
This may be a bit of a long shot...

I've been working with the excellent new ReportView libraries in VS2005.
Until this afternoon I've been extremely happy with everything I've seen
them do. I've just run into a problem with generating PDF files that contain
charts however, as Microsoft apparently ran out of time while working on the
PDF report generator and didn't manage to get image compression working
(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=165591). The result
is that my report that should be about 60KB is being generated at somewhere
a little over 7MB. Generating reports of this size isn't viable for us for
delivery over the web.

I'm quietly hopeful that this will be fixed whenever MS release a service
pack for VS2005, but in the meantime I'm hoping to find another way to work
around this in the mean time.

Does anyone know of any free software that I can use within my VB.NET
application that would be able to open the PDF file content, compress the
images, and then give me back the new (smaller) PDF file?

Failing that, can anyone point me to a good source of information as to how
the uncompressed images are stored in PDF files? Perhaps I can write some
code that would convert the images (which I assume are in TIFF format?) to a
smaller file format (such as JPG) and re-embed them in the file myself...

My thanks in advance,

--

(O)enone

Author
9 Feb 2006 4:44 PM
Carlos J. Quintero [VB MVP]
Hi,

See if this component can help you:
http://sharppdf.sourceforge.net/

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


Show quoteHide quote
"Oenone" <oen***@nowhere.com> escribió en el mensaje
news:%23lWs$PZLGHA.2216@TK2MSFTNGP09.phx.gbl...
> This may be a bit of a long shot...
>
> I've been working with the excellent new ReportView libraries in VS2005.
> Until this afternoon I've been extremely happy with everything I've seen
> them do. I've just run into a problem with generating PDF files that
> contain charts however, as Microsoft apparently ran out of time while
> working on the PDF report generator and didn't manage to get image
> compression working
> (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=165591). The result
> is that my report that should be about 60KB is being generated at
> somewhere a little over 7MB. Generating reports of this size isn't viable
> for us for delivery over the web.
>
> I'm quietly hopeful that this will be fixed whenever MS release a service
> pack for VS2005, but in the meantime I'm hoping to find another way to
> work around this in the mean time.
>
> Does anyone know of any free software that I can use within my VB.NET
> application that would be able to open the PDF file content, compress the
> images, and then give me back the new (smaller) PDF file?
>
> Failing that, can anyone point me to a good source of information as to
> how the uncompressed images are stored in PDF files? Perhaps I can write
> some code that would convert the images (which I assume are in TIFF
> format?) to a smaller file format (such as JPG) and re-embed them in the
> file myself...
>
> My thanks in advance,
>
> --
>
> (O)enone
>
Author
9 Feb 2006 7:33 PM
Oenone
Carlos J. Quintero [VB MVP] wrote:
> See if this component can help you:
> http://sharppdf.sourceforge.net/

Hi Carlos,

Thanks for the tip -- that looks like a nice project, but it doesn't seem to
have the capability of reading existing PDF files, only creating new ones.

Not to worry though, I think I may have found a complex but workable
solution to my original problem, so with a bit of luck I won't need any
external code after all...

--

(O)enone
Author
9 Feb 2006 10:09 PM
Homer J Simpson
"Oenone" <oen***@nowhere.com> wrote in message
news:cOMGf.12283$Dn4.544@newsfe3-gui.ntli.net...

> Hi Carlos,
>
> Thanks for the tip -- that looks like a nice project, but it doesn't seem
> to have the capability of reading existing PDF files, only creating new
> ones.
>
> Not to worry though, I think I may have found a complex but workable
> solution to my original problem, so with a bit of luck I won't need any
> external code after all...

ABBYY can open and compress existing PDFs. For new PDFs, try printing to
PrimoPDF.
Author
10 Feb 2006 12:37 AM
Ken Tucker [MVP]
Hi,

        Maybe this will work for you.
http://www.codeproject.com/showcase/TallComponents.asp

Ken
----------------
Show quoteHide quote
"Oenone" <oen***@nowhere.com> wrote in message
news:cOMGf.12283$Dn4.544@newsfe3-gui.ntli.net...
> Carlos J. Quintero [VB MVP] wrote:
>> See if this component can help you:
>> http://sharppdf.sourceforge.net/
>
> Hi Carlos,
>
> Thanks for the tip -- that looks like a nice project, but it doesn't seem
> to have the capability of reading existing PDF files, only creating new
> ones.
>
> Not to worry though, I think I may have found a complex but workable
> solution to my original problem, so with a bit of luck I won't need any
> external code after all...
>
> --
>
> (O)enone
>
Author
10 Feb 2006 2:32 PM
Jim Wooley
I don't have a direct answer for you on compression, but there is a free
guide on how to select a pdf control for .Net. It includes viewers/creators
and manipulators. Check it out at http://www.howtoselectguides.com/dotnet/pdf/.

Jim Wooley