On Sat, 26 Nov 2011 15:28:03 -0800 Leonard Rosenthol <[email protected]> wrote:
>> 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. > > 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 stream, surrounded by the appropriate transform operators. > It is, however, the most common way because some implementers consider > it a simpler approach. I should say that one of the intended applications for this program would be, for example, to lay out a 3*4 array of a single business card image on a letter-size sheet of paper. Using XObjects would seem to be the only way to do that without bloating the file size by a factor of twelve, unless I'm missing something. > And it does work for most common cases (there are some edge cases it > fails on, however). Could you elaborate on that? What are the cases for which XObjects could not be made to work? Do you have any suggestions as to how to fix the program I presented in my first message? I suspect that the source XObject needs to be added to the destination page dictionary, or something like that, but I'm not quite clear on how to do that, as with the two lines which have been commented out. One problem is that the PdfDictionary class is not described in the current API documentation, as I mentioned previously. -- Ian Bruce ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
