Excellent, it compiles just fine after I add another conditional around line 84
in PdfFontMetrics.cpp:
#if defined(__APPLE_CC__) && !defined(PODOFO_HAVE_FONTCONFIG)
=>
#if defined(__APPLE_CC__) && !defined(PODOFO_HAVE_FONTCONFIG) &&
!defined(TARGET_OS_IPHONE)
And thanks -- I'll let you know about beta testing a bit later :-)
Matias
On 15 Sep 2010, at 15:27, Leonard Rosenthol wrote:
> I haven’t looked at PoDoFo in a while, but I believe there is a conditional
> already present for compiling in FreeType or not – and if not, it should be
> easy enough to add one. Just pull that stuff out of the build and you can
> use the rest of it – it’s only used for a VERY SMALL portion of the entire
> library.
>
> Might be a worthwhile conditionalization anyway – sort of a “NO_CREATION”
> option for folks who only want to parse and modify at the lowest levels.
>
> And if you need any beta testers for iOS-based PDF solutions – count me in!
>
> Leonard
>
> From: Matias Piipari [mailto:[email protected]]
> Sent: Wednesday, September 15, 2010 10:07 AM
> To: Leonard Rosenthol
> Cc: [email protected]
> Subject: Re: [Podofo-users] PoDoFo for iPhone: how to get rid of the ATS font
> system?
>
> I'd like to do a very simple thing in fact: parse in an existing PDF, add
> some annotations to it with PoDoFo whilst it's in memory, and export the PDF
> into a file. As in, the existing document should be unmodified, but I simply
> add annotations in certain positions in the document. I don't need any of the
> font metric stuff, but I thought it would be necessary as PdfFontMetrics.h
> is imported in lots of places.
>
> Matias
>
> On 15 Sep 2010, at 15:00, Leonard Rosenthol wrote:
>
>
> I have a version (somewhere) that gets rid of Carbon, but still uses ATS
> (since it was assumed to be running on Mac, not iOS).
>
> How much of Poppler do you need? Could you simply comment out the support
> for FreeType and still use all the other parts or are you using the text
> features in Poppler?
>
> Leonard
>
> From: Matias Piipari [mailto:[email protected]]
> Sent: Wednesday, September 15, 2010 7:52 AM
> To: [email protected]
> Subject: [Podofo-users] PoDoFo for iPhone: how to get rid of the ATS font
> system?
>
> Hi there
>
> I've tried unsuccessfully to compile PoDoFo for the iPhone SDK. Looks like
> this is due to problems with font loading in PdfFontMetrics.cpp. More
> specifically, some Carbon legacy specific file reference structs are used
> (FSSpec -- easy to replace), as well as the ATS font system. ATSFont.h is
> unfortunately not available in the iPhone SDK (not on the device anyways --
> it is on the simulator). Leonard was suggesting in an earlier discussion (*)
> that he could help with cleaning up the font code. Is the offer still on? :-)
> I'm all up for suggestions on how to replace references to ATSFont.h with
> those defined in CTFont.h (CoreText.framework) which is now supplied with the
> iPhone SDK 4.x.
>
> Best wishes
> Matias
>
> - - - - - - - - - - -
> Matias Piipari
>
> http://twitter.com/mz2
> http://www.thecosmokid.com
>
>
> - - - - - - - - - - -
> Matias Piipari
>
> http://twitter.com/mz2
> http://www.thecosmokid.com
>
- - - - - - - - - - -
Matias Piipari
http://twitter.com/mz2
http://www.thecosmokid.com
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users