Re: [Podofo-users] imposition methods

2011-11-27 Thread Leonard Rosenthol
On 11/27/11 10:07 AM, "ian_br...@fastmail.net" wrote: >On Sun, 27 Nov 2011 05:39:40 -0800 >Leonard Rosenthol wrote: > >>> You could, I suppose, just copy the source page stream into the >>> destination page stream, surrounded by the appropriate transform

Re: [Podofo-users] imposition methods

2011-11-27 Thread Leonard Rosenthol
On 11/26/11 11:22 PM, "ian_br...@fastmail.net" wrote: >On Sat, 26 Nov 2011 15:28:03 -0800 >Leonard Rosenthol 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 >

Re: [Podofo-users] turning pages into XObjects

2011-11-26 Thread Leonard Rosenthol
On 11/26/11 12:38 AM, "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 geometric transforms.

Re: [Podofo-users] Extracting single pages

2011-11-24 Thread Leonard Rosenthol
It may be the original PDF that is causing this as well. Do you see this behavior on all PDFs or just one/some? What happens if you do the same thing with Adobe Acrobat (or some other tool)?? Leonard On 11/24/11 1:39 AM, "Brad Hards" wrote: >Hi, > >I'm using podofo to split up a document int

Re: [Podofo-users] UR3

2011-10-02 Thread Leonard Rosenthol
t to allow 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" wrote: >2011/10/2 Leonard Rosenthol : >> The ONLY

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" wrote: >Hi, > >Assuming you find every JavaSc

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 mailto:senpa...@gmail.com>> Date: Thu, 29 Sep 2011 17:22:02 -0700 To: "podofo-users@lists.so

Re: [Podofo-users] Utf-8 text with the PDF standard fonts

2011-09-26 Thread Leonard Rosenthol
quot; wrote: >On Mon, Sep 26, 2011 at 12:33:26PM -0700, Leonard Rosenthol wrote: >> No, you can not. The non-embeddedable Base14 fonts are ASCII only. > >Ah ok. > >Then what would be a reasonable way of getting small PDFs, without >embedding >FreeSerif (1MB), keeping in min

Re: [Podofo-users] Utf-8 text with the PDF standard fonts

2011-09-26 Thread Leonard Rosenthol
No, you can not. The non-embeddedable Base14 fonts are ASCII only. On 9/26/11 2:53 PM, "Lluís Batlle i Rossell" wrote: >Hello, > >I've source text in utf-8 having mostly latin1 and cyrillic character >subsets. >I'd like them to show fine in the PDF, but I can achieve that only if I >include >m

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" wrote: >On Wed, Sep 7, 2011 at 8:43 PM, Leonard Rosenthol >wrote: >> Wt does

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

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 crea

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" 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 someone plz

Re: [Podofo-users] transparent overlap of PDF

2011-04-24 Thread Leonard Rosenthol
e S's. I manually removed them from out-merge and enclosed the result. Leonard From: Matthew Chan [mailto:talc...@gmail.com] Sent: Sunday, April 24, 2011 3:00 PM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] transparent overlap of PDF Hi Leonard, Thanks

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] S

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

2011-03-27 Thread Leonard Rosenthol
probably indexed 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] podofocol

Re: [Podofo-users] Background-Transparent PNG Image

2011-03-13 Thread Leonard Rosenthol
PNG doesn't support CMYK, so I am not understanding where PNG and CMYK mix in this instance... From: Khalid Jumaa [mailto:kha...@applexya.com] Sent: Sunday, March 13, 2011 5:22 AM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] Background-Transparent PNG Image Dear all, We are fa

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 a

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-17 Thread Leonard Rosenthol
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
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? Leonard

Re: [Podofo-users] Adding Annotations to a Documents

2011-02-16 Thread Leonard Rosenthol
There is a patch for adding incremental update writes to Poppler - but I don't know if it's part of mainline or not. Leonard -Original Message- From: Martin Schröder [mailto:mar...@oneiros.de] Sent: Wednesday, February 16, 2011 2:44 PM To: podofo-users@lists.sourceforge.net Subject: Re:

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-

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 ap

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: xt

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 annotati

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

2011-01-17 Thread Leonard Rosenthol
I examined the PDF Are you using the current head of PoDoFo or a previous build? I recall Dominic fixing something recently... Leonard From: Aaron C. Meadows [mailto:pod...@shadowguarddev.com] Sent: Monday, January 17, 2011 2:00 PM To: Leonard Rosenthol Cc: podofo-users@lists.sourceforge.net

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

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

2011-01-17 Thread Leonard Rosenthol
Acrobat/Reader report an appropriate error. The page has no resource dictionaries, so it can't find the fonts and images referenced. From: Aaron C. Meadows [mailto:pod...@shadowguarddev.com] Sent: Monday, January 17, 2011 11:02 AM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] In

Re: [Podofo-users] 回复: Question about CreateFont

2011-01-17 Thread Leonard Rosenthol
It should �C but how are you obtaining those fonts for use with Poppler? Those fonts come on with Adobe Acrobat (hence the Acro) and are NOT licensed for use outside of that application. Leonard Rosenthol PDF Architect Adobe Systems From: 凌风 [mailto:weskin...@qq.com] Sent: Monday, January 17

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 pod

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_

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

2010-11-21 Thread Leonard Rosenthol
Generation numbers are always zero - no one that I know of writes non-zero gens. -Original Message- From: Stefan Brüns [mailto:stefan.bru...@rwth-aachen.de] Sent: Sunday, November 21, 2010 9:35 AM To: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] GetOwner() for direct P

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 3200

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

2010-11-10 Thread Leonard Rosenthol
1 - use a custom second class dictionary key as described in ISO 32000-1, Annex E. Be sure to register your prefix as described there as well. 2 - Sure. Just set the text render mode to 3 when drawing. -Original Message- From: Matias Piipari [mailto:matias.piip...@gmail.com] Sent: Wed

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] 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: podofo-users@lists.so

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 Poppler?

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

2010-09-15 Thread Leonard Rosenthol
[mailto:matias.piip...@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 som

Re: [Podofo-users] RightToLeft

2010-09-13 Thread Leonard Rosenthol
Should probably name it SetImageChromaKeyMask since that's what it is doing... Leonard -Original Message- From: Emad Steitieh [mailto:ema...@yahoo.com] Sent: Monday, September 13, 2010 11:59 AM To: podofo-users@lists.sourceforge.net; Dominik Seichter Subject: Re: [Podofo-users] RightToLe

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:

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

2010-09-13 Thread Leonard Rosenthol
...@web.de [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

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: Michae

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 13

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; 'D

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

2010-08-04 Thread Leonard Rosenthol
Are you reading the Encoding information from the Font that is being used to show the text? You MUST do so - you can't treat the text in the content stream w/o it... Leonard -Original Message- From: Jo Van der Snickt [mailto:jvdsni...@dilys.be] Sent: Wednesday, August 04, 2010 10:54 AM

Re: [Podofo-users] Extending features in Adobe Reader

2010-07-11 Thread Leonard Rosenthol
Actually the problem isn't legal so much as it is that you can't implement compatibility with reader without adobe's private certificate - which you don't have. Leonard On Jul 10, 2010, at 4:58 PM, "Martin Schröder" wrote: > 2010/7/10 Ihab Sultan : >> I'm trying to imitate the "Extend Feature

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 [mailto:ronny.ban...

Re: [Podofo-users] iPhone build

2010-05-30 Thread Leonard Rosenthol
have to write it myself eventually. :) Best, 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,

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] 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] 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] C

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 Ado

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 19

Re: [Podofo-users] "Yes" vs "On" in PdfAnnotations

2010-03-17 Thread Leonard Rosenthol
Off is always Off, but the other ("On") value is actually determined by the value of the control. -Original Message- From: dennis jenkins [mailto:dennis.jenkins...@gmail.com] Sent: Wednesday, March 17, 2010 2:19 AM To: Podofo-users@lists.sourceforge.net Subject: [Podofo-users] "Yes" vs "

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 EXTE

Re: [Podofo-users] Missing entry in PdfOutlineItem

2010-02-23 Thread Leonard Rosenthol
I am doing this w/o looking at the spec, but I am pretty sue that Count is a required field. If positive, the items are expanded in the UI. If negative, they are hidden. But the absolute value of the number is the count of children. Leonard -Original Message- From: padd...@gmx.net [m

Re: [Podofo-users] Using already embedded fonts

2010-02-11 Thread Leonard Rosenthol
Ah, missed the forms stuff. Since you were talking VDP, I was thinking you were using real content. I would also recommend that you check out the forthcoming ISO 16612-2 standard (PDF/VT) which is targeted at variable and transactional printing. Not every form, however, has the fonts actuall

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] Question about append/InsertPages()

2009-09-03 Thread Leonard Rosenthol
want to waste my time if > the idea will be shot down. > > > Thanks, > > James C. -- Leonard Rosenthol PDF Standards Architect Adobe Systems -- Let Crystal Reports handle the reporting - Free Crys

Re: [Podofo-users] PdfContentsTokenizer position is reset with multiple streams

2009-08-27 Thread Leonard Rosenthol
And that is correct - content streams are treated as logically concatenated. (and I've seen them split in the middle of an operation!) Leonard -Original Message- From: Mike Slegeir [mailto:msleg...@llminc.com] Sent: Thursday, August 27, 2009 1:46 PM To: A. Massad Cc: podofo-users Subje

Re: [Podofo-users] PdfContentsTokenizer position is reset with multiple streams

2009-08-26 Thread Leonard Rosenthol
Combining the streams in memory should be fine. It's easy and RAM/VM is prevalent in modern OS's. Leonard -Original Message- From: Mike Slegeir [mailto:msleg...@llminc.com] Sent: Wednesday, August 26, 2009 11:18 AM To: podofo-users Subject: Re: [Podofo-users] PdfContentsTokenizer positi

Re: [Podofo-users] PoDoFo will overwrite the Producer of a PdfMemDocument

2009-08-18 Thread Leonard Rosenthol
Producer shouldn't change unless explicitly asked to. It should get set on a newly created document, but not on a modified/read one. Leonard -Original Message- From: Mike Slegeir [mailto:msleg...@llminc.com] Sent: Tuesday, August 18, 2009 12:53 PM To: podofo-us...@lists.sf.net Subject

Re: [Podofo-users] Margins and Fonts

2009-07-22 Thread Leonard Rosenthol
Connecting up Poppler to PoDoFo wouldn't be that difficult - I've sat Xpdf (on which Poppler is based) on top of other PDF libraries in the past to use its rendering facilities in conjunction with other PDF reading/writing needs. Basically you just need to replace parts of the core Object/Dict/

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] scanf use

2009-07-20 Thread Leonard Rosenthol
PLEASE REPLACE THEM!! On 7/20/09 7:46 AM, "Craig Ringer" wrote: Hi I've noticed that PdfParser.cpp uses scanf. That's ... not very safe. Any objections if I try to replace them with something a bit more robust in the face of corrupt / malicious files? -- Craig Ringer ---

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

2009-07-15 Thread Leonard Rosenthol
Yes, that's the one place where there is indeed a hole...I am working on it ;) Leonard From: Ulrich Arnold [mailto:ulrich.arn...@t-online.de] Sent: Wednesday, July 15, 2009 10:36 AM To: Leonard Rosenthol; 'Craig Ringer'; podofo-users@lists.sourceforge.net Subject: AW: [Podofo

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

2009-07-15 Thread Leonard Rosenthol
__ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated ---

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

2009-07-15 Thread Leonard Rosenthol
ourceforge.net 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 in prizes

Re: [Podofo-users] Document appending and fonts

2009-06-18 Thread Leonard Rosenthol
xternally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users -- Leonard Rosenthol PDF Standards Architect Ado

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

2009-05-04 Thread Leonard Rosenthol
those validation passes? 2009/5/4 Leonard Rosenthol mailto:lrose...@adobe.com>> However, running a validation pass over the file shows NUMEROUS problems with the file. I’ve enclosed the details. -- Domenico Testa http://del.icio.us/

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 [mailto:domenico.te...@gmail.com

Re: [Podofo-users] Universal build on Mac OSX

2009-04-27 Thread Leonard Rosenthol
I would be pretty surprised to find anyone building NEW software for PPC... -Original Message- From: Michael Marsella [mailto:mich...@avenza.com] Sent: Monday, April 27, 2009 8:52 AM To: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users] Universal build on Mac OSX I found it

Re: [Podofo-users] Extracting Accessible Text

2009-03-19 Thread Leonard Rosenthol
Yes, that's the right thing to do. No, there isn't any easier way. Leonard From: Mark Rogers [mailto:mark.rog...@electrum.co.uk] Sent: Thursday, March 19, 2009 5:48 PM To: podofo-users@lists.sourceforge.net Subject: [Podofo-users] Extracting Accessible Text Hi I'm trying to figure out how to e

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 Acrob

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
ou come up 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&#x

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
Sure seems like a PoDoFo bug... Leonard -Original Message- From: igorg [mailto:ig...@cadlink.com] Sent: Tuesday, February 17, 2009 5:40 PM To: Leonard Rosenthol; podofo-users@lists.sourceforge.net Subject: RE: [Podofo-users] PdfXobject question Hi Leonard, your hacked version works

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
ow. 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 [mail

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
ot each object in XObject) Regards, Igor _ From: Leonard Rosenthol [mailto:lrose...@adobe.com] To: igorg [mailto:ig...@cadlink.com], podofo-users@lists.sourceforge.net [mailto:podofo-us...@lists.sourceforge.net] Sent: Tue, 17 Feb 2009 15:17:48 -0500 Subject: Re: [Podofo-users] PdfXobject

Re: [Podofo-users] PdfXobject question

2009-02-17 Thread Leonard Rosenthol
;pdfXO); painter.FinishPage(); } document.Close(); == Regards, Igor -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- Open Source Business Conference (OSBC), March 2

Re: [Podofo-users] podofobrowser experiences

2009-01-02 Thread Leonard Rosenthol
Someone did a Qt-based renderer for PDF (using Xpdf as the backend), so I know it can be done... Leonard -Original Message- From: Pierre Marchand [mailto:pie...@moulindetouvois.com] Sent: Friday, January 02, 2009 12:22 PM To: podofo-users@lists.sourceforge.net Subject: Re: [Podofo-users

Re: [Podofo-users] otf font support, linux

2008-12-31 Thread Leonard Rosenthol
HOWEVER, that OTF support is a FULL EMBED - you can't subset that way - and it's really deisgned for form field usage. If you are just using the OTF for content (eg. regular text), then PoDoFo needs to be modified to "split the OTF apart" into it TTF or T1 origins and process it accordingly fro

Re: [Podofo-users] Selecting Printer Tray in PDF

2008-11-06 Thread Leonard Rosenthol
On Nov 5, 2008, at 11:42 PM, Reinhard Mitteregger wrote: > does anybody know how to select a paper-tray for a printer within a > PDF-job? > The PDF reference manual apparently doesn't mention anything. > The reason the PDF Reference doesn't mention it is because such features are not PO

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. The

Re: [Podofo-users] ArcTo

2008-10-15 Thread Leonard Rosenthol
I could have done it - but if so, I don't remember doing it... Leonard On Oct 15, 2008, at 9:32 PM, Craig Ringer wrote: > Dominik Seichter wrote: >> Hi, >> >> "svn blame" told me that Craig is the one to blame :). But he is >> busy with >> lot's of stuff at the moment. > > Really? As best I re

Re: [Podofo-users] floating point values

2008-08-07 Thread Leonard Rosenthol
You can fix that with stream modifiers (ostream::precision & ostream::width). Leonard On Aug 7, 2008, at 1:21 AM, Dominik Seichter wrote: > Hello, > > Thanks! This works. It is not quite yet what I want. For examples > this writes > 3.50 to a PDF if I have the double 3.5. In this case we

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, 2008

Re: [Podofo-users] Crypto++ library

2008-05-08 Thread Leonard Rosenthol
crypto++ would be useful for standard crypto, but wouldn't help with DigSig or Signature-based crypto. Try libeay (part of openssl). Leonard On May 8, 2008, at 7:03 AM, Craig Ringer wrote: > Dom, > > Regarding PoDoFo's encryption needs, have you looked at the crypto++ > library? I had a quick

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 going

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 Dict

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

2008-02-18 Thread Leonard Rosenthol
I believe that we have done so fro the ISO 32000 version of the document. Leonard On Feb 18, 2008, at 9:29 AM, Martin Schröder wrote: > 2008/2/18, Leonard Rosenthol <[EMAIL PROTECTED]>: >> No, that is not true. >> >> You can have individual parts inherited... >

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

2008-02-18 Thread Leonard Rosenthol
No, that is not true. You can have individual parts inherited... Leonard On Feb 17, 2008, at 3:35 PM, Pierre Marchand wrote: > Vous avez écrit : >> They way I understand the PDF spec, that's not possible. Either the >> Resources dictionary >> is inherited as a whole or not at all: > > I guess I

Re: [Podofo-users] New method PdfDocument

2007-12-20 Thread Leonard Rosenthol
It's been a while since I looked at the code, but doesn't PdfDocument take a std::istream, of which std::istrstream is a valid subtype? Use that - no need to change any code. Leonard On Dec 20, 2007, at 4:45 AM, EXTERNAL Loch Sebastian (Firma Ferchau; BhP/TEF17) wrote: > Hello all, > > as I

Re: [Podofo-users] XFA based forms

2007-12-14 Thread Leonard Rosenthol
You'll need to use the low level APIs to add the actual dictionaries and data streams for the XFA data, as defined in the PDF Reference. Leonard On Dec 14, 2007, at 1:12 AM, Ian wrote: > Hi, does anyone have a tiny example of how to add an XFA form > using PoDoFo? Any architectural issues I sh

Re: [Podofo-users] 答复: Asking for help, about TrueType embedding.

2007-12-14 Thread Leonard Rosenthol
Dom is working on a TrueType subsetter, but it is still in process. Leonard On Dec 13, 2007, at 9:21 PM, ZhangYang(张杨.国际) wrote: > Got it. > Thank you very much. Maybe I have to do it myself. > By the way, the version of PoDoFo I am using seems not able to > support CIDFont, which I wrote by m

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) You

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

Re: [Podofo-users] GNU PDF

2007-11-22 Thread Leonard Rosenthol
On Nov 22, 2007, at 4:18 AM, Martin Schröder wrote: > Have a look at Haru, which is under ZLIB/libpng: > http://libharu.sourceforge.net/index.html > libharu is a nice library, though I found their 1.x version MUCH nicer in terms of code cleanliness than 2.x. They designed 2.x to be m

Re: [Podofo-users] GNU PDF

2007-11-22 Thread Leonard Rosenthol
On Nov 22, 2007, at 4:11 AM, Dominik Seichter wrote: > I would especially > be interested in their filters implementation as they have already > 70% of > CCITT filters done which we currently do not support at all. > I would use libtiff for handling the CCITT filters, and a few others a

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 1

<    1   2   3   >