Re: [Podofo-users] Removing Embedded Attachments and File Annotations

2017-06-21 Thread Leonard Rosenthol via Podofo-users
Thanks for the link for the PDF standards, but FE meant this: http://shop.oreilly.com/product/0636920025269.do On 6/21/17, 1:10 AM, "zyx" wrote: On Tue, 2017-06-20 at 16:31 +0200, F. E. wrote: > But now I ordered Leonards book Hi, you can get them for

Re: [Podofo-users] Removing Embedded Attachments and File Annotations

2017-06-20 Thread Leonard Rosenthol via Podofo-users
Yes, my book is much easier to understand (though I am biased ☺). Chapter 8 is all about embedded files…so that will help. Leonard From: "F. E." Date: Tuesday, June 20, 2017 at 10:31 AM To: "podofo-users@lists.sourceforge.net" Subject:

Re: [Podofo-users] DrawText & Unicode

2017-06-20 Thread Leonard Rosenthol via Podofo-users
Great – didn’t remember that being added! Thanks for the correction. Leonard On 6/20/17, 2:19 AM, "zyx" <z...@litepdf.cz> wrote: On Mon, 2017-06-19 at 16:12 +, Leonard Rosenthol via Podofo-users wrote: > PoDoFo doesn’t support subsetting a f

Re: [Podofo-users] Removing Embedded Attachments and File Annotations

2017-06-19 Thread Leonard Rosenthol via Podofo-users
As far as PDF 1.7 (ISO 32000-1) is concerned, that will handle both of the defined locations for embedded files – though not necessary other places that embedded filestreams can be used. For PDF 2.0 (ISO 32000-2), there are many more potential places that embedded file streams can exist.

Re: [Podofo-users] Appending PDF: Embedded files of appended file not accessible in result pdf

2017-03-07 Thread Leonard Rosenthol
that it should do that – and if it doesn’t, it’s a bug… Leonard From: "F. E." <exler7...@gmail.com> Date: Tuesday, March 7, 2017 at 9:58 AM To: Leonard Rosenthol <lrose...@adobe.com>, "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net>

Re: [Podofo-users] Appending PDF: Embedded files of appended file not accessible in result pdf

2017-03-07 Thread Leonard Rosenthol
Appending is not the same as Attaching. Appending is what the name implies – append the pages from one to the other. So that a appending a 10 page document to another 10 page document yields a document with 20 pages. Attaching is the same as it is with Email or using a ZIP file. You are

Re: [Podofo-users] Font object duplication

2017-02-22 Thread Leonard Rosenthol
The PDF 1.7 specification was superseded in 2008(!!) by ISO 32000-1 as the official PDF standard. ISO 32000-1 does not contain that section and therefore it should be ignored as it no longer has any bearing. Leonard PDF Architect · Senior Principal Scientist | Adobe Systems Incorporated |

Re: [Podofo-users] Unicode in form fields

2016-09-22 Thread Leonard Rosenthol
Actually, I suspect (and can’t verify without seeing the PDF itself) that LibreOffice does NOT embed the fonts properly for use in form fields. Leonard From: Thomas Szendefi <thomas.szend...@kumkeo.de> Date: Thursday, September 22, 2016 at 1:58 PM To: Leonard Rosenthol <lrose...@

Re: [Podofo-users] Unicode in form fields

2016-09-22 Thread Leonard Rosenthol
What font are you applying to the field? If you want Unicode, you need to use a font that supports Unicode and is embedded appropriately. Leonard From: Thomas Szendefi Date: Thursday, September 22, 2016 at 1:21 PM To: "podofo-users@lists.sourceforge.net"

Re: [Podofo-users] Incrementally sign PDF

2016-09-20 Thread Leonard Rosenthol
Someone sends me a PDF that demonstrates the problem with Reader, I can investigate. Leonard On 9/20/16, 12:29 PM, "zyx" wrote: On Tue, 2016-09-20 at 09:06 +, Thomas Szendefi wrote: > Do you have any idea why the signature is not recognized by Adobe > Reader

Re: [Podofo-users] Podofo reading Bleed/Trim box

2016-08-19 Thread Leonard Rosenthol
I think you have been given a requirement that doesn’t really make sense. First, a PDF doesn’t have a single color. Each object on each page of the document can be any one of eleven (yes, 11!) different ways that color can be represented inside of a PDF. So what does it mean to “detect the

Re: [Podofo-users] Question about Nested XObjects and Images

2016-08-18 Thread Leonard Rosenthol
I would need to the actual PDF to be able to say anything more… From: Anton Heymann <anton.heym...@cad-essence.com> Date: Thursday, August 18, 2016 at 2:19 AM To: Leonard Rosenthol <lrose...@adobe.com>, "podofo-users@lists.sourceforge.net" <podofo-users@lists.sou

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Leonard Rosenthol
In order to access system fonts, you will need to write a bunch of Mac-Specific platform code (similar to what exists for Win, IIRC). The code used to exist in PoDoFo, but was removed. Leonard On 2/18/16, 10:08 AM, "Peter Petrov" wrote: >Yes, I've patched a little

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Leonard Rosenthol
>I found Core Text API >https://developer.apple.com/library/mac/documentation/StringsTextFonts/Conceptual/CoreText_Programming/Overview/Overview.html > > > >On 18.02.2016 15:16, Leonard Rosenthol wrote: >> I haven’t looked at the PoDoFo code in a while, but IIRC zyx is correct tha

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Leonard Rosenthol
I haven’t looked at the PoDoFo code in a while, but IIRC zyx is correct that the FreeType code will work for both Mac and Win and should be just fine. Check the Mac build configurations. There used to be native Mac code for font handling but that was removed a while back when Apple dropped

Re: [Podofo-users] Develop a pdf anominizer

2016-01-22 Thread Leonard Rosenthol
On 1/21/16, 10:28 PM, "Paolo Bolzoni" wrote: >I think you are overthinking. See the point that way, I'd like to >write a program to work with .pdf, so I want to start with something >easy. OK - well that’s easy enough to get started. >>That is correct - just

Re: [Podofo-users] Develop a pdf anominizer

2016-01-22 Thread Leonard Rosenthol
Yes, I was over-simplifying. There are both technical and legal reasons why some fonts cannot be embedded. Leonard On 1/22/16, 9:08 AM, "zyx" <z...@litepdf.cz> wrote: >On Fri, 2016-01-22 at 13:19 +, Leonard Rosenthol wrote: >> > If a font is not >> &

Re: [Podofo-users] Develop a pdf anominizer

2016-01-19 Thread Leonard Rosenthol
On 1/19/16, 12:35 AM, "Paolo Bolzoni" wrote: >> Do you mean the resource name used to refer to them from content streams? >> The value of the Name key in the Font dictionary? >As far as I understood the second one. OK - you can do that if you want. >> What

Re: [Podofo-users] Develop a pdf anominizer

2016-01-18 Thread Leonard Rosenthol
What do you mean by “rename the fonts”? Do you mean the resource name used to refer to them from content streams? The value of the Name key in the Font dictionary? Something else? What do you hope to gain by doing so? Would you do this only for embedded fonts? I am sure you could use

Re: [Podofo-users] Color-seperation + spotcolors

2015-09-23 Thread Leonard Rosenthol
Do you want to actually split the file into separate documents - one with only some content/objects and one with the rest? Or do you want a document with all content but that has controls to “turn on/off” different objects? You can do either (or both) - but each would be accomplished quite

Re: [Podofo-users] questions about podofo

2015-07-27 Thread Leonard Rosenthol
2 – Since it doesn’t do any rendering, which is part of 32000, no it does not. However, it has all the necessary components to CREATE and EDIT a PDF. 3 – Yes, you can. (see above). Of course, that doesn’t mean it will be easy – just possible. 4 – See #3. Could you use it – absolutely.

Re: [Podofo-users] PDF file size is increasing after adding PdfFont

2015-06-16 Thread Leonard Rosenthol
You are embedding a very large font, which is why the file size increase. Use a smaller font. From: Dineshkumar Ramalingam Date: Tuesday, June 16, 2015 at 3:02 AM To: podofo-users@lists.sourceforge.netmailto:podofo-users@lists.sourceforge.net Subject: [Podofo-users] PDF file size is increasing

Re: [Podofo-users] Reg: Support Required

2015-06-16 Thread Leonard Rosenthol
Is the size increased by the size of the image or by more than the size of the image? From: Sriram Gopalan -ERS, HCL Tech Date: Tuesday, June 16, 2015 at 4:43 AM To: podofo-us...@lists.sf.netmailto:podofo-us...@lists.sf.net Cc: Ahongsangbam Dorendro, Hariprabhakaran C Subject: [Podofo-users]

Re: [Podofo-users] Reg: Color Detection of PDF pages.

2015-06-05 Thread Leonard Rosenthol
Conversion to RGB will yield both false positives and false negatives. You need to do this in native colorspace. Leonard From: Sriram Gopalan -ERS, HCL Tech Date: Friday, June 5, 2015 at 7:05 AM To: podofo-us...@lists.sf.netmailto:podofo-us...@lists.sf.net Cc: Ahongsangbam Dorendro,

Re: [Podofo-users] Reg: Color Detection of PDF pages.

2015-06-05 Thread Leonard Rosenthol
. Leonard From: Sriram Gopalan -ERS, HCL Tech Date: Friday, June 5, 2015 at 10:16 AM To: Leonard Rosenthol, podofo-us...@lists.sf.netmailto:podofo-us...@lists.sf.net Cc: Ahongsangbam Dorendro, Hariprabhakaran C Subject: RE: [Podofo-users] Reg: Color Detection of PDF pages. Hi Leonard, Thank you

Re: [Podofo-users] podofo: multipage creation

2015-04-17 Thread Leonard Rosenthol
No – you will need to do your own page breaking and br handling. From: Syed Khaja Moinuddin Date: Saturday, April 11, 2015 at 11:48 PM To: podofo-us...@lists.sf.netmailto:podofo-us...@lists.sf.net Subject: [Podofo-users] podofo: multipage creation Hello all, I'm trying to create

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

Re: [Podofo-users] copy pdf pages without xobjects wrapping?

2015-01-08 Thread Leonard Rosenthol
, but leaves all other pages and all resources untouched? Thank you for your help, Yuliana Am 04.01.2015 um 06:11 schrieb Leonard Rosenthol: Page-level copying has nothing to do with Xobject wrapping. Leonard On 1/3/15, 2:36 PM, Yuliana Zigangirova zigangir...@inbox.ru wrote: Hello everyone! I

Re: [Podofo-users] copy pdf pages without xobjects wrapping?

2015-01-03 Thread Leonard Rosenthol
. The reason for this is to obtain more simple pdf structure as well as more efficient resources handling. I have found a similar thread here where Leonard Rosenthol says you can just copy a page. http://sourceforge.net/p/podofo/mailman/message/26740244/ What does it mean? If I create an empty pdf

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

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

  1   2   >