Really?  When I tried encoding JPEGs into PDFs, the library kept throwing an 
exception.  When I dove into the code, I found this in PdfFiltersPrivate.cpp:

void PdfDCTFilter::BeginEncodeImpl(){    PODOFO_RAISE_ERROR( 
ePdfError_UnsupportedFilter );}
void PdfDCTFilter::EncodeBlockImpl( const char*, pdf_long ){    
PODOFO_RAISE_ERROR( ePdfError_UnsupportedFilter );}
void PdfDCTFilter::EndEncodeImpl(){    PODOFO_RAISE_ERROR( 
ePdfError_UnsupportedFilter );}

This is where I got the impression that JPEGs weren't supported.  Yes, JPEG 
loading is implemented, I just can't add them to a document.  This seems 
bizarre to me considering how libjpeg is right there, with this library...Thank 
you.

Date: Sat, 31 Aug 2013 11:34:47 +0200
Subject: Re: [Podofo-users] PoDoFo doesn't support JPEG encoding filters?!
From: domseich...@googlemail.com
To: spam_receptac...@hotmail.com
CC: podofo-us...@lists.sf.net

The DCTDecodeFilter ist implemented and supported. Also, loading JPEGs into a 
PdfImage is available (see for example the podofoimg2pdf tool)
Cheers, Dominik


On Fri, Aug 30, 2013 at 10:25 PM, First Second <spam_receptac...@hotmail.com> 
wrote:




I was making some serious progress in making something that can modify PDFs 
when I ran into the bizarre situation where PoDoFo apparently hasn't 
implemented JPEG encoding.  Perhaps it was foolish of me to not check but since 
it linked against libjpeg, I naturally assumed that JPEG images would work.  I 
would never have guessed that they only half work.

Why is JPEG encoding not supported?  You have libjpeg right there, you even use 
it for decoding.  Why not use it for encoding too?
Thank you...
                                          

------------------------------------------------------------------------------

Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!

Discover the easy way to master current and previous Microsoft technologies

and advance your career. Get an incredible 1,500+ hours of step-by-step

tutorial videos with LearnDevNow. Subscribe today and save!

http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________


Podofo-users mailing list

Podofo-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/podofo-users



                                          
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to