You are right that comparisons should be done on the same document. Still the very basic behavior of PoDoFo when appending content is something I was really uncomfortable and that I dealt in pdfmm by automatically encapsulate the previous content of the page/XObject stream(s) with q/Q operator before the append. This is done by default, because users not knowing the PDF standard should not get unpredictable results when trying to do simple tasks such as adding text to a location, but the behavior is intended to be controlled by use of optional flags[1] (some behaviors still not implemented).
More to come about pdfmm later (I'm almost about to begin porting of PoDoFo tools). Greetings, Francesco [1] https://github.com/pdfmm/pdfmm/blob/874914ee597d5f49a48c3d5d122288e889dea8ff/src/pdfmm/base/PdfPainter.h#L36 On Fri, 1 Apr 2022 at 08:03, zyx <z...@gmx.us> wrote: > > On Fri, 2022-04-01 at 12:28 +0800, 主义可以不同 via Podofo-users wrote: > > can you give me some advice? > > Hi, > what advice are you looking for, please? The files are not identical, > obviously, thus there's really a very little to advice. You should > compare apples and apples, not apples and oranges. A wild guess would > be that the file you modified (not created from start) left some > drawing matrix in the stack, which influenced your text (drew it "up- > side-down"). I know the Microsoft PDF printer does this. There can be > more PDF creators not closing their drawings with a clean state. > Bye, > zyx > _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users