Re: [Podofo-users] GetResources

2007-09-21 Thread Leonard Rosenthol
I recommend that you write a new method which walks up the tree to find the inherited resources... Leonard On Sep 21, 2007, at 11:43 AM, Pierre Marchand wrote: Can I expect PdfPage::GetResources() to return inherited resources ? Case yes, it does not here and something like

Re: [Podofo-users] Using Boost::graph for searching PDF ?

2007-11-08 Thread Leonard Rosenthol
No question that you need a DAG for handling PDF objects - esp. for search. It's also potentially useful for object use computation (such as garbage collection). But as discussed before - right now you'd definitely want it done optionally. Leonard On Nov 8, 2007, at 7:04 AM, Craig Ringer

Re: [Podofo-users] Content stream validity

2007-11-22 Thread Leonard Rosenthol
On Nov 22, 2007, at 3:48 AM, Craig Ringer wrote: I'm having a bit of trouble with some PDF code, and was hoping for a helping hand. The following code is the the end of the content stream for PDF Reference 1.5 (v5) page 89: q 232.5 281.5 147.5 245.975 re W n 0.5 w 232.75 527.225 147

Re: [Podofo-users] Content stream validity

2007-11-22 Thread Leonard Rosenthol
On Nov 22, 2007, at 5:23 AM, Craig Ringer wrote: Current issues are: - We read all objects from a sream immediately into memory (I think this is ok, because we have to decompress the stream only once) That does land up being wasteful if nothing in that stream is called for. It'd be

Re: [Podofo-users] Content stream validity

2007-11-23 Thread Leonard Rosenthol
On Nov 23, 2007, at 1:21 AM, Craig Ringer wrote: For example, in code like: q % blah BT % blah Q % If there are operators here, what context applies? ET This stream is CLEARLY WRONG! There are only a limited number of operators allowed between BT/ET - and q/Q aren't on that

Re: [Podofo-users] html to pdf converter

2007-11-30 Thread Leonard Rosenthol
Musing along with you. 1) You need an HTML parser. Depending on what level of HTML you are planning ot support, you may also need a CSS parser. 2) You need an HTML (and CSS?) layout engine - this is most certainly the hardest part as evidenced by the variability among the web browsers. 3)

Re: [Podofo-users] PdfObject::GetParent??

2008-02-19 Thread Leonard Rosenthol
On Feb 18, 2008, at 2:37 PM, Andreas Vox wrote: Can you share that clarification with us? I checked the definition of the /Resources entry in a page dictionary on page 145 of the 1.7 specification and it still says: The following is from the ISO 32000 Draft Spec, section 7.8.3 Resource

Re: [Podofo-users] Not able to flate decode

2008-03-25 Thread Leonard Rosenthol
PDF passwords don't work for Unicode - so there is no reason to pass it in. It is based on a subset of ISO-Latin-1 called PDDocEncoding. Also, wchar_t is not a great data structure for Unicode... Leonard On Mar 24, 2008, at 9:51 PM, Ihab Sultan wrote: Hi Dominik, Do you think it is

Re: [Podofo-users] PDF file trailer question

2008-08-01 Thread Leonard Rosenthol
There are WAY too many crappy PDF generators out there. Acrobat/ Reader and others have simply had to adopt code to accept it all over the years...Ask any PDF library vendor and they will tell you that more time is spent handling these bad files than anything else :(. Leonard On Aug 1,

Re: [Podofo-users] PDF streams - progressive and random reads

2008-10-25 Thread Leonard Rosenthol
Can this be done by using standard C++ iostreams, rather then creating a new model? What about the boost stream extensions? Leonard On Oct 23, 2008, at 3:25 PM, Craig Ringer wrote: Hi Before I start work on this, I just want to check to make sure I'm not missing anything obvious. There

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
know. ExtGS9 is state3 and as I mentioned in the first post it is only defined on document level not on XObject level. Do you know how to define ExtGstate on XObject level? Thanks, Igor From: Leonard Rosenthol [mailto:lrose...@adobe.com] To: igorg [mailto:ig

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
with... Leonard -Original Message- From: igorg [mailto:ig...@cadlink.com] Sent: Tuesday, February 17, 2009 4:49 PM To: Leonard Rosenthol; podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] PdfXobject question Hi Leonard, ExtGState9 is not defined on page as I'm not using

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
: Tuesday, February 17, 2009 5:09 PM To: Leonard Rosenthol; podofo-users@lists.sourceforge.net Subject: RE: [Podofo-users] PdfXobject question Hi Leonard, I don't think inheritance works :( Here is example I mentioned in previous post. I replaced state3 with state2 in XObject and now Acrobat

Re: [Podofo-users] [Signature] Corrupted file

2009-05-04 Thread Leonard Rosenthol
Opened up fine in Acrobat 9, noting that the document is signed (by someone I don’t know), but otherwise seems fine. However, running a validation pass over the file shows NUMEROUS problems with the file. I’ve enclosed the details. Leonard From: Domenico Testa

Re: [Podofo-users] Acrobat Pro's document structure inspector

2009-07-15 Thread Leonard Rosenthol
https://lists.sourceforge.net/lists/listinfo/podofo-users -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000

Re: [Podofo-users] Margins and Fonts

2009-07-22 Thread Leonard Rosenthol
There is no such thing as a margin in PDF. Text (and any other object) are just drawn anywhere on a page that you wish. If there happens to be what you (as a human) perceive as white space around such objects, that's simply where the producer choose to draw them. It is possible to determine

Re: [Podofo-users] Question about append/InsertPages()

2009-09-04 Thread Leonard Rosenthol
down. Thanks, James C. -- Leonard Rosenthol PDF Standards Architect Adobe Systems -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration

Re: [Podofo-users] Using already embedded fonts

2010-02-09 Thread Leonard Rosenthol
Using a font that already exists in a PDF is NOT a good idea, because in almost all cases the embedded font is NOT complete. It is most likely a subset embed, which means that it doesn't have the full complement of glyphs. So what happens when you want to use a glyph that isn't in the PDF? Even

Re: [Podofo-users] Determination of correct Pdf version

2010-02-23 Thread Leonard Rosenthol
This is correct. (Catalog overrides header) And the version in the Catalog should always be greater than the one in the header. Also, you might want to also add support for reading the /Extensions dictionary as defined in ISO 32000-1, where developers can declare the use of features that

Re: [Podofo-users] Impose Migrate resources and arrays

2010-04-19 Thread Leonard Rosenthol
Rewriting the array from direct to indirect would indeed be a bad thing - for size (and performance) considerations. I am sure there is a bug in the array object copier somewhere...should be easy to find and fix. Leonard From: Harald Weinhandl [mailto:hvo...@hotmail.com] Sent: Monday, April

Re: [Podofo-users] parse PDF created by Adobe LC

2010-05-06 Thread Leonard Rosenthol
There is nothing special about such a PDF. It follows the ISO 32000-1 specification. What do you believe is the issue? Leonard From: shoks [mailto:lowbots...@gmail.com] Sent: Thursday, May 06, 2010 4:23 AM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] parse PDF created by

Re: [Podofo-users] Can Podofo do this?

2010-05-10 Thread Leonard Rosenthol
There is only ONE TOOL available today that does “selective rasterization” and that is PDF Enhancer from Apago (http://www.apago.com). Leonard From: matteo melani [mailto:matteomel...@gmail.com] Sent: Thursday, May 06, 2010 7:45 AM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users]

Re: [Podofo-users] Issue with creation of PdfFontCID using the FontFactory

2010-05-17 Thread Leonard Rosenthol
And a big part will also be writing a CMap parser to handle the ToUnicode tables which are necessary to process the CID fonts. -Original Message- From: xTeo [mailto:x...@xteo.com] Sent: Monday, May 17, 2010 9:14 AM To: Dominik Seichter Cc: podofo-users@lists.sourceforge.net Subject: Re:

Re: [Podofo-users] iPhone build

2010-05-30 Thread Leonard Rosenthol
The Mac font implementation was still born - I had it working but never checked it in prior to my (re)joining Adobe. One of these days I need to find that code. HOWEVER, the code still used a few Carbon APIs from the ATS system - which I suspect aren't available on the iPhone. Bottom line

Re: [Podofo-users] iPhone build

2010-05-30 Thread Leonard Rosenthol
, Engin. On 30.05.2010, at 23:06, Leonard Rosenthol wrote: The Mac font implementation was still born - I had it working but never checked it in prior to my (re)joining Adobe. One of these days I need to find that code. HOWEVER, the code still used a few Carbon APIs from the ATS system

Re: [Podofo-users] same object entries in different cross-reference stream

2010-06-11 Thread Leonard Rosenthol
I'd have to see an actual PDF to speak more specifically, but I can comment that the file was produced using non-standard/unapproved methods. (the person printed through Mac OS X's native PDF creation facility) Leonard -Original Message- From: ronny.ban...@nexgo.de

Re: [Podofo-users] Weird buffer returned by PdfString::GetString()

2010-08-04 Thread Leonard Rosenthol
Start with ISO 32000-1 - that's the PDF standard. Read the section on Fonts and the section content streams. There's no shortcut. -Original Message- From: Jo Van der Snickt [mailto:jvdsni...@dilys.be] Sent: Wednesday, August 04, 2010 12:08 PM To: Leonard Rosenthol; 'Dominik Seichter

Re: [Podofo-users] XMP writing

2010-08-13 Thread Leonard Rosenthol
Do a full save instead of an incremental one. However, what version of the XMPToolkit are you using? I am quite sure that the current version will scan from the rear and not the front, for exactly this reason... Leonard From: Ian Ashley [mailto:ian.ash...@opentext.com] Sent: Friday, August

Re: [Podofo-users] Attaching files at the document level

2010-09-13 Thread Leonard Rosenthol
Can someone post a PDF that demonstrates this? I'd like to know what is in the PDF that Reader isn't finding. Thanks, Leonard -Original Message- From: Dominik Seichter [mailto:domseich...@web.de] Sent: Monday, September 13, 2010 6:16 AM To: podofo-users@lists.sourceforge.net Cc:

Re: [Podofo-users] Attaching files at the document level

2010-09-13 Thread Leonard Rosenthol
[mailto:domseich...@web.de] Sent: Monday, September 13, 2010 7:03 AM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net; Michael Wild Subject: Re: [Podofo-users] Attaching files at the document level See attachement. Thanks for investigating this! Cheers, Dominik Am Montag 13

Re: [Podofo-users] Attaching files at the document level

2010-09-13 Thread Leonard Rosenthol
If you remove that Limits on the root, then the file shows up just fine. Since the Limit was there, we are using it as part of the Name Tree parsing and failing since it can't find the objects that Limits refers to. Leonard -Original Message- From: Leonard Rosenthol [mailto:lrose

Re: [Podofo-users] PoDoFo for iPhone: how to get rid of the ATS font system?

2010-09-15 Thread Leonard Rosenthol
...@gmail.com] Sent: Wednesday, September 15, 2010 10:07 AM To: Leonard Rosenthol Cc: podofo-us...@lists.sf.net 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

Re: [Podofo-users] PoDoFo for iPhone: how to get rid of the ATS font system?

2010-09-15 Thread Leonard Rosenthol
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

Re: [Podofo-users] PoDoFo Architecture Changes

2010-10-18 Thread Leonard Rosenthol
I would think that PdfDocument (for managing pages and such) should be part of the core as well. Clearly painter and annots can be split out... Leonard -Original Message- From: Dominik Seichter [mailto:domseich...@web.de] Sent: Monday, October 18, 2010 1:20 PM To:

Re: [Podofo-users] PoDoFo Architecture Changes

2010-10-19 Thread Leonard Rosenthol
Ah... OK - if there are people that can get by with only the core and w/o PdfDocument - then fine. -Original Message- From: domseich...@web.de [mailto:domseich...@web.de] Sent: Monday, October 18, 2010 5:13 PM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re

Re: [Podofo-users] Including identifiers with annotations + hidden text in PDFs

2010-11-10 Thread Leonard Rosenthol
, 2010 11:58 AM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] Including identifiers with annotations + hidden text in PDFs On 10 Nov 2010, at 16:17, Leonard Rosenthol wrote: 1 - use a custom second class dictionary key as described in ISO 32000-1

Re: [Podofo-users] GetOwner() for direct PdfObjects

2010-11-21 Thread Leonard Rosenthol
Subject: Re: [Podofo-users] GetOwner() for direct PdfObjects On Sunday 21 November 2010 17:12:21 Leonard Rosenthol wrote: Generation numbers are always zero - no one that I know of writes non-zero gens. Yes, but whats the point of your mail - an object is direct, if _both_ generation _and_ object

Re: [Podofo-users] Can I split one pdf document into multiple documents of it with podofo

2010-12-12 Thread Leonard Rosenthol
Or just copy pages between two documents... -Original Message- From: Dominik Seichter [mailto:domseich...@web.de] Sent: Sunday, December 12, 2010 9:41 AM To: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] Can I split one pdf document into multiple documents of it with

Re: [Podofo-users] InsertPages() and fonts

2011-01-17 Thread Leonard Rosenthol
I don't know what you did in the first place - so hard to say what broke and why... From: Aaron C. Meadows [mailto:pod...@shadowguarddev.com] Sent: Monday, January 17, 2011 1:02 PM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] InsertPages() and fonts

Re: [Podofo-users] Arabic/UTF8 Annotation

2011-02-06 Thread Leonard Rosenthol
PDF doesn't do UTF-8. You need UTF-16(BE). Leoanrd From: Waleed Mashaqbeh [mailto:waleed.mashaq...@gmail.com] Sent: Sunday, February 06, 2011 1:45 PM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] Arabic/UTF8 Annotation Hi, Is there a way of setting arabic/UTF8 text

Re: [Podofo-users] Best Read only approch ?

2011-02-08 Thread Leonard Rosenthol
Everytime you request a page, the base set of its objects have to be loaded and memory allocated for them. Nothing you can do about that. IN THEORY, you could do some form of FIFO queue for older pages - but that would require low-level plumbing down in PoDoFo...but doable. Leonard From:

Re: [Podofo-users] Best Read only approch ?

2011-02-08 Thread Leonard Rosenthol
Then you need to modify the guts of PoDoFo to support your model, since it's not how it currently works. From: xteo [mailto:x...@xteo.com] Sent: Tuesday, February 08, 2011 8:58 AM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] Best Read only approch

Re: [Podofo-users] Please Help

2011-02-16 Thread Leonard Rosenthol
Looks like a problem with one of the STL containers... Check online for others with the same issue, since it's not podofo related... Leonard From: Waleed Mashaqbeh [mailto:waleed.mashaq...@gmail.com] Sent: Wednesday, February 16, 2011 8:37 AM To: Leonard Rosenthol; podofo-users

Re: [Podofo-users] It is possible to crop a page

2011-02-17 Thread Leonard Rosenthol
Before I answer, can you clarify something? Let say that you have a page with 2 images and some text. If I select only the text, then when writing out the new PDF, would you expect that the images wouldn’t be present and taking up space? OR do you simply want them not to render/draw?

Re: [Podofo-users] It is possible to crop a page

2011-02-17 Thread Leonard Rosenthol
at technical level….) Leonard From: tomasz.kota...@gmail.com [mailto:tomasz.kota...@gmail.com] On Behalf Of Tomasz J. Kotarba Sent: Thursday, February 17, 2011 8:05 AM To: Leonard Rosenthol Cc: podofo-us...@lists.sf.net Subject: Re: [Podofo-users] It is possible to crop a page Hi Leonard, Thanks

Re: [Podofo-users] It is possible to crop a page

2011-02-17 Thread Leonard Rosenthol
Just add a SetCropBox() method to the API – it’s a single line call (just setting the value of a key in a dictionary). Leonard From: tomasz.kota...@gmail.com [mailto:tomasz.kota...@gmail.com] On Behalf Of Tomasz J. Kotarba Sent: Thursday, February 17, 2011 2:51 PM To: Leonard Rosenthol Cc

Re: [Podofo-users] It is possible to crop a page

2011-02-18 Thread Leonard Rosenthol
Actually, I was suggesting that you WRITE that API. From: tomasz.kota...@gmail.com [mailto:tomasz.kota...@gmail.com] On Behalf Of Tomasz J. Kotarba Sent: Friday, February 18, 2011 10:22 AM To: Leonard Rosenthol Cc: podofo-us...@lists.sf.net Subject: Re: [Podofo-users] It is possible to crop

Re: [Podofo-users] podofocolor: wrong rgb to cmyk conversion

2011-03-27 Thread Leonard Rosenthol
and you aren't converting the base of the index. Leonard -Original Message- From: Dominik Seichter [mailto:domseich...@web.de] Sent: Sunday, March 27, 2011 6:42 AM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] podofocolor: wrong rgb to cmyk

Re: [Podofo-users] transparent overlap of PDF

2011-04-24 Thread Leonard Rosenthol
Transparency is maintained at the page/graphics level. Any two pages composited together will maintain their transaparency. Can you post two source PDFs and the result from podofoimpose that demonstrate the problem you are seeing? Thanks, Leonard From: Matthew Chan [mailto:talc...@gmail.com]

Re: [Podofo-users] Help needed: PoDoFo Fonts

2011-08-10 Thread Leonard Rosenthol
To do what with the fonts? On 8/10/11 6:52 AM, Balbir Kumar balbir.ku...@geodesic.com wrote: Hi all, I am new to podofo. I have a basic question. Does PoDoFo cover all fonts type available in PDF or only a subset of it? Looking at the code it seems Type-3 is not implemented. Could

Re: [Podofo-users] How to make annotations editable in AcroRead?

2011-08-12 Thread Leonard Rosenthol
Actually, the feature is 100% documented in ISO 32000-1:2008. HOWEVER, the feature involves the use of Digital Signatures/Certificates and so a pair of them is needed. Adobe and others implement this by incorporating the public certificate into their readers, and then use the private cert at

Re: [Podofo-users] Is PoDoFo the best open-source library for analysing headers, footers ToC using custom algorithms?

2011-09-07 Thread Leonard Rosenthol
Wt doesn't support converting a PDF-HTML, so how would you display the PDF in the browser w/o a client-side plugin. Since a PDF doesn't have a concept of a page header or page footer, you will need to extract all the content on the page (or pages) and make some heuristic determination about what

Re: [Podofo-users] Is PoDoFo the best open-source library for analysing headers, footers ToC using custom algorithms?

2011-09-07 Thread Leonard Rosenthol
From that page: (emphasis mine) A paint device for rendering TO A PDF. That class is used for CREATING a PDF - not CONVERTING a PDF to HTML. Leonard On 9/7/11 9:11 AM, Alec Taylor alec.tayl...@gmail.com wrote: On Wed, Sep 7, 2011 at 8:43 PM, Leonard Rosenthol lrose...@adobe.com

Re: [Podofo-users] UR3

2011-10-01 Thread Leonard Rosenthol
The ONLY POSSIBLE way to write data to a Reader Enabled file w/o breaking the signature is: 1. Write in Append mode 2. Not write anything that isn't allowed Leonard From: Pablo Ariel Schulklapper senpa...@gmail.commailto:senpa...@gmail.com Date: Thu, 29 Sep 2011 17:22:02 -0700 To:

Re: [Podofo-users] Streams and javascript

2011-10-01 Thread Leonard Rosenthol
Also remember that JavaScript can be in a String object as well - not just a Stream. But the bigger issue is making sure you get all the places in PDF that they can live. Details are in ISO 32000-1... Leonard On 9/29/11 4:11 AM, Dominik Seichter domseich...@googlemail.com wrote: Hi, Assuming

Re: [Podofo-users] UR3

2011-10-02 Thread Leonard Rosenthol
form filling and you fill in some forms, then you've broken it. BUT if you are allowed to fill forms and ALL YOU DO is fill fields, then that's perfectly fine. Leonard On 10/2/11 7:57 AM, Martin Schröder mar...@oneiros.de wrote: 2011/10/2 Leonard Rosenthol lrose...@adobe.com: The ONLY POSSIBLE

Re: [Podofo-users] turning pages into XObjects

2011-11-26 Thread Leonard Rosenthol
On 11/26/11 12:38 AM, ian_br...@fastmail.net ian_br...@fastmail.net wrote: I'm trying to write a program to do page imposition, OK. It seems that the way to do this is to create XObjects from the pages in the source files, and redraw these onto the destination pages with the appropriate

Re: [Podofo-users] imposition methods

2011-11-27 Thread Leonard Rosenthol
On 11/26/11 11:22 PM, ian_br...@fastmail.net ian_br...@fastmail.net wrote: On Sat, 26 Nov 2011 15:28:03 -0800 Leonard Rosenthol lrose...@adobe.com wrote: That's certainly one way to do it, though not the only way. You could, I suppose, just copy the source page stream into the destination page

Re: [Podofo-users] digital signatures

2011-12-30 Thread Leonard Rosenthol
You have to iterate over all the fields in the Fields array in the AcroForm dictionary looking for those of type Sig. Of course, that will only tell you the number of signature fields. For each field, you'll need to see if it's signed or not. Leonard -Original Message- From: Alvaro

Re: [Podofo-users] the helloworld PDF file is huge

2012-01-13 Thread Leonard Rosenthol
If Acrobat/Reader have to repair the file, then it is broken! In this case, you need an EOL after the endstream AND the endobj. Leoanrd -Original Message- From: Alvaro Cuno [mailto:alvaro...@gmail.com] Sent: Friday, January 13, 2012 11:59 AM To: podofo-users@lists.sourceforge.net

Re: [Podofo-users] pdf annotation + pdf stream color editing

2012-06-11 Thread Leonard Rosenthol
trying this out today so I don't know the library very well yet. Thanks for the fast answer :) On Jun 11, 2012, at 5:51 PM, Leonard Rosenthol wrote: Yes, you need to update the Appearance Stream (AP) of the annotation as well. From: Ismael Schellemberg isma...@gmail.commailto:isma...@gmail.com

Re: [Podofo-users] pdf annotation + pdf stream color editing

2012-06-11 Thread Leonard Rosenthol
Yes, you need to update the Appearance Stream (AP) of the annotation as well. From: Ismael Schellemberg isma...@gmail.commailto:isma...@gmail.com To: podofo-us...@lists.sf.netmailto:podofo-us...@lists.sf.net podofo-us...@lists.sf.netmailto:podofo-us...@lists.sf.net Subject: [Podofo-users] pdf

Re: [Podofo-users] PDF Portfolios

2012-08-02 Thread Leonard Rosenthol
PDF Portfolios are just a pretty face on the concept of a Collection, as described in ISO 32000-1. Leonard -Original Message- From: Ismael Schellemberg [mailto:ischellemb...@infragistics.com] Sent: Thursday, August 02, 2012 11:58 AM To: podofo-users@lists.sourceforge.net Subject:

Re: [Podofo-users] ttf subset merging?

2012-08-28 Thread Leonard Rosenthol
No, it is not. I am not aware of ANY open source library that can perform subset merging. In fact, the only product that does subset merging is Adobe's PDFLibrary. There are some libraries, such as iText, that can avoid duplication of fully embedded fonts, but not subsets. Leonard From:

Re: [Podofo-users] problem drawing images

2012-08-31 Thread Leonard Rosenthol
What is actually stored in data? Is it raw image data or some image format (like PNG or JPEG)? From: Ismael Schellemberg [mailto:isma...@gmail.com] Sent: Friday, August 31, 2012 11:22 AM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] problem drawing images Greetings, i'm having

Re: [Podofo-users] problem drawing images

2012-08-31 Thread Leonard Rosenthol
Don't use a JPEG - use raw bits. From: Ismael Schellemberg [mailto:isma...@gmail.com] Sent: Friday, August 31, 2012 12:08 PM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] problem drawing images With some testing I found that the problem is that I don't

Re: [Podofo-users] problem drawing images

2012-08-31 Thread Leonard Rosenthol
Check the rect for the annotation itself and any transforms there. From: Ismael Schellemberg [mailto:isma...@gmail.com] Sent: Friday, August 31, 2012 1:49 PM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] problem drawing images Ok, i've managed to work

Re: [Podofo-users] bold/italic fonts

2012-09-05 Thread Leonard Rosenthol
Because Helvetica is NOT a bold or italic font face. If you want the bold version, you need Helvetica Bold. If you want the italic version, you need Helvetica Italic. Leonard From: Ismael Schellemberg [mailto:isma...@gmail.com] Sent: Tuesday, September 04, 2012 2:44 PM To:

Re: [Podofo-users] Custom metadata in the Document Information Dictionary

2012-09-05 Thread Leonard Rosenthol
Yes it's allowed, though not recommended. It's much better to use XMP instead. Leonard From: James McGill [mailto:james.mcgill...@gmail.com] Sent: Wednesday, September 05, 2012 11:44 AM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] Custom metadata in the Document Information

Re: [Podofo-users] PdfPainter + japanese characters

2012-09-06 Thread Leonard Rosenthol
What makes you think that Helvetica supports those characters/glyphs? It does not. You need a font that does. Leonard -Original Message- From: Ismael Schellemberg [mailto:ischellemb...@infragistics.com] Sent: Thursday, September 06, 2012 12:11 PM To:

Re: [Podofo-users] unicode text

2012-10-07 Thread Leonard Rosenthol
You can't put UTF-8 into the content stream of a PDF - it's not supported. Leonard -Original Message- From: Ismael Schellemberg [mailto:ischellemb...@infragistics.com] Sent: Friday, October 05, 2012 2:42 PM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] unicode text

Re: [Podofo-users] unicode text

2012-10-08 Thread Leonard Rosenthol
AM To: Dominik Seichter Cc: Leonard Rosenthol; podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] unicode text Im able to create a font named ArialUnicodeMS or Arial Unicode MS normally using obj-c (UIFont) so the font does exist in the system UIFont *arialUnicodeFont

Re: [Podofo-users] unicode text

2012-10-08 Thread Leonard Rosenthol
Schellemberg [mailto:ischellemb...@infragistics.com] Sent: Monday, October 08, 2012 1:38 PM To: Leonard Rosenthol Cc: Dominik Seichter; podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] unicode text I was just struggling with this one, I downloaded Arial Unicode MS font .ttf and add

Re: [Podofo-users] CID fonts subsettting

2013-02-18 Thread Leonard Rosenthol
You don't actually subset a CID font - since there is no such thing as a CID font file. A CID font is really a special way to encode/store font data in a PDF file when having to deal with Unicode-based fonts. You can create a CID font from a TTF or OTF font as part of subsetting it - though it's

Re: [Podofo-users] CID fonts subsettting

2013-02-18 Thread Leonard Rosenthol
...@gmail.com Date: Monday, February 18, 2013 5:09 PM To: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com Cc: podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users

Re: [Podofo-users] dpi in podofo

2013-03-12 Thread Leonard Rosenthol
PDF is RESOLUTION INDEPENDENT! Stop thinking in dpi. Leonard From: dharma teja dharmatej...@gmail.commailto:dharmatej...@gmail.com Date: Tuesday, March 12, 2013 9:46 AM To: Dominik Seichter domseich...@googlemail.commailto:domseich...@googlemail.com Cc: Michael Marsella

Re: [Podofo-users] Insert font

2013-04-02 Thread Leonard Rosenthol
.Afm files are NOT font files, they are font METRICS files and completely useless. You will need to get actual fonts files in either Type 1, TrueType or OpenType format. Leonard From: dharma teja dharmatej...@gmail.commailto:dharmatej...@gmail.com Date: Tuesday, April 2, 2013 2:35 PM To:

Re: [Podofo-users] PoDoFo allocating too much memory

2013-04-28 Thread Leonard Rosenthol
PDF isn't a streamable read format – it is a random-access format, which requires that some set of objects be kept around in memory. (the size and amount of the objects actually varies based on the age and quality of the PDF being read). Leonard (NOTE: you can stream WRITE a PDF, but not

Re: [Podofo-users] PDF Page Functionalities

2013-06-17 Thread Leonard Rosenthol
Dominik recommend the podofocolor tool. From: Sriram Gopalan -ERS, HCL Tech srira...@hcl.commailto:srira...@hcl.com Date: Monday, June 17, 2013 4:05 PM To: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com, podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net

Re: [Podofo-users] Templating a PDF file for repeated use

2013-08-26 Thread Leonard Rosenthol
PDF forms. They have been part of PDF for about 15 years. Leonard From: Robert Butler m...@r-butler.netmailto:m...@r-butler.net Date: Monday, August 26, 2013 1:06 AM To: podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net

Re: [Podofo-users] Templating a PDF file for repeated use

2013-08-26 Thread Leonard Rosenthol
On 8/26/13 9:37 PM, Larry Doolittle la...@doolittle.boa.org wrote: On Mon, Aug 26, 2013 at 05:08:55AM -0700, Leonard Rosenthol wrote: PDF forms. They have been part of PDF for about 15 years. If I guess what Robert is asking about, forms are not a good answer. Forms are the PERFECT answer

Re: [Podofo-users] How to funnel cairo surface data into a PdfImage

2013-09-11 Thread Leonard Rosenthol
You can't use ARGB directly with PDF, as the alpha channel is handled in a different way. Use a simple RGB surface or separate out the A. Leonard From: Joerg Walter joerg-wal...@gmx.demailto:joerg-wal...@gmx.de Date: Wednesday, September 11, 2013 5:40 AM To:

Re: [Podofo-users] How to set the opening view of a PDF document

2013-11-25 Thread Leonard Rosenthol
SetFitWindow does what the name implies – which is why Reader is opening it as such. I don't recall the methods in PoDoFo but look in that same area for setting it to a specific zoom factor (and pass 100%). Worst case, you can write it yourself. Leonard From: Malcolm Gates

Re: [Podofo-users] Issues learning PoDoFo, can't find examples

2014-02-13 Thread Leonard Rosenthol
Are you sure the file actually has any custom metadata? And when you refer to that, do you mean the XMP stream that would normally be found off the Catalog (which, IIRC, is why GetMetadata returns) or something else? If you can post a sample PDF and an explanation of what you are expecting to

Re: [Podofo-users] Remove duplicated fonts when merging PDFs?

2014-03-18 Thread Leonard Rosenthol
In most cases, the fonts are SUBSET rather than fully embedded. Doing duplicate elimination of full embed is pretty easy, but subset merge is VERY hard - which is why only Adobe's libraries offer that option. Leonard From: Amanda Checkin checkin.ama...@gmail.commailto:checkin.ama...@gmail.com

Re: [Podofo-users] Remove duplicated fonts when merging PDFs?

2014-03-20 Thread Leonard Rosenthol
: Thursday, March 20, 2014 at 4:59 PM To: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com Cc: podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] Remove

Re: [Podofo-users] PoDoFo cannot load some PDFs with XMP metadata

2014-04-17 Thread Leonard Rosenthol
I haven’t looked at the code in Load() in a while, but I can’t think of a reason that it is loading the XMP. Are you SURE that this where the exception is being thrown - XMP parsing?? I would think it’s somewhere else in the PDF. Can you post a sample? Leonard On 4/17/14, 9:47 PM, Uli Zappe

Re: [Podofo-users] PDF Forms with non-standard annotations

2014-04-25 Thread Leonard Rosenthol
The FT key can be inherited from it's parent when they are organized in a hierarchy (ISO 32000-1, 12.7.3.1). Yes, checking the Subtype is the correct way to identify a form field. HOWEVER, you should probably also look at adding inheritance support (as a generalization) to some/all of the

Re: [Podofo-users] How to reduce Pdf size

2014-05-05 Thread Leonard Rosenthol
size On Sun, May 4, 2014 at 5:06 PM, Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com wrote: Adobe Reader doesn't re-save PDFs - so perhaps you mean Adobe Acrobat?? Leonard Hello Leonard, I do mean Adobe Reader XI on 32-bit Windows XP. I'm not editing the PDF, exactly. Let

Re: [Podofo-users] Splicing PDFs with AcroForms, NeedsAppearances, mysterious file size shrinkage, Adobe Reader behavior

2014-05-07 Thread Leonard Rosenthol
[For completeness, all references to Reader behavior also apply to Acrobat] You didn’t mention the presence of NeedsAppearance during the original thread or I would have pointed that out at the time. So YES, because that is present, Reader has to create all the appearances (as you’ve asked it

Re: [Podofo-users] How to reduce Pdf size

2014-05-08 Thread Leonard Rosenthol
your Subject line so it is more specific than Re: Contents of Podofo-users digest... Today's Topics: 1. Re: How to reduce Pdf size (zyx) 2. PdfWriter as a base class (Ilan Zisser) 3. Re: How to reduce Pdf size (Leonard Rosenthol) 4. Re: How to reduce Pdf size (Leonard Rosenthol) 5

Re: [Podofo-users] Dominik, are you ok?

2014-05-11 Thread Leonard Rosenthol
I also have commit privs, though I haven¹t used them in 6+ years. Moving to Github (or equiv) seems like a good idea to me - and I don¹t think Dom would object. Leonard On 5/11/14, 10:07 AM, Alexander Repty alexander.re...@mac.com wrote: On 11.05.2014, at 15:41, Dennis Jenkins

Re: [Podofo-users] Outputting Arabic (via Harfbuzz) [on Windows]

2014-06-05 Thread Leonard Rosenthol
As you discovered, you will need to provide your own Arabic shaper (and glyph selection module). Leonard On 6/4/14, 8:57 AM, Drupal dru...@readytext.co.uk wrote: Dear All Firstly, my sincere thanks to the team behind PoDoFo for making this software freely available. Just to summarize my

Re: [Podofo-users] Heads-Up: Drawing API to be changed within the next few weeks

2014-06-05 Thread Leonard Rosenthol
Is the set of changes easily reviewable? On 6/5/14, 11:17 AM, zyx z...@litepdf.cz wrote: Hello all, I'd like to give a heads-up that I'll be merging changes from zyx_integration branch, which are also changing drawing API - to get more freedom when drawing. I will skip the change which

Re: [Podofo-users] Outputting Arabic (via Harfbuzz) [on Windows]

2014-06-06 Thread Leonard Rosenthol
. With all best wishes. Kind regards Graham On 06/06/2014 02:10, Leonard Rosenthol wrote: As you discovered, you will need to provide your own Arabic shaper (and glyph selection module). Leonard On 6/4/14, 8:57 AM, Drupal dru...@readytext.co.uk wrote: Dear All Firstly, my sincere

Re: [Podofo-users] How to add Appearance Steam (AP) annotations

2014-06-11 Thread Leonard Rosenthol
You need to read ISO 32000 (the PDF standard) more – or try a book such as my “Developing with PDF” (http://thepdfbook.com/) to better under the various data structures in a PDF, how they go together and then finally combine to make an appearance stream for an annotation. Leonard From: VED

Re: [Podofo-users] How to add Appearance Steam (AP) annotations (Leonard Rosenthol)

2014-06-12 Thread Leonard Rosenthol
But the problem here isn’t PoDoFo – it’s that you are aren’t creating a valid Appearance stream. Leonard From: VED PRAKASH veda...@gmail.commailto:veda...@gmail.com Date: Thursday, June 12, 2014 at 3:03 AM To: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com Cc: podofo-users

Re: [Podofo-users] Fwd: Problem with enumerating objects with PoDoFo

2015-02-16 Thread Leonard Rosenthol
? -- Forwarded message -- From: Nadav Ben Jakov tbya...@gmail.commailto:tbya...@gmail.com Date: Tue, Feb 10, 2015 at 6:34 PM Subject: Re: [Podofo-users] Problem with enumerating objects with PoDoFo To: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com Hi, I'm sorry

Re: [Podofo-users] Podofo Library Questions

2015-02-16 Thread Leonard Rosenthol
PDF is not designed for the task you wish. The on disk serialization has no bearing on the in-memory representation. White space, key sort order, comments, etc. are not persisted into memory so they cannot be put back when re-serialized. If you need the original – then keep the original

Re: [Podofo-users] Problem with enumerating objects with PoDoFo

2015-02-10 Thread Leonard Rosenthol
That stream that you show doesn’t have a filter. If it did, you’d see it on the stream dictionary. Instead, what you have is an unfiltered stream containing arbitrary data – which in this case, just happens to be a ZIP file. But it could just as well been a Word file, another PDF or even a

  1   2   >