Maybe something is wrong with your "podofo_config.h"? On Tue, May 25, 2021 at 3:55 PM Blayne Cullen <blay...@pulsonix.com> wrote:
> Hello PoDoFo Team, > > > > I have come across something interesting whilst attempting to use PoDoFo. > When writing text to a pdf document using the tools/examples within the > supplied podofo.sln work as they should. However, when writing text outside > of the podofo.sln the text sizes appear wrong. I have even created an exact > duplicate of the helloworld-base14 Project in an external solution but it > still writes incorrect text sizes. Browsing the web I have come across > other’s reporting similar problems but having found no solution, only > temperamental work-arounds such as tweaking the Transformation Matrix until > the correct result are achieved. Attached is a Pdf document that contains > two outputs of the “helloword-base14” project; the first created from > within the supplied podofo.sln and the second in a duplicate external > solution. I have debugged into it a bit and saw that the first error it > makes is in PdfPainter::DrawText(Ln 810) where > m_pFont->GetIdentifier().GetName() is being used, it picks up a different > name in the external solution to the internal solution. The errors continue > down the line within this function as well. > > > > In addition to the Transformation Matrix work-around, it was also > mentioned that the generated PoDoFo library was the cause of the problem. > I’ve rebuilt the library many times using different building tools such as > NMake and Visual Studio, using different versions of PoDoFo source files > (0.9.7 and R2033) and with different versions of PoDoFo’s required > libraries: FreeType, ZLib and Jpeg; all producing the same issue. > > > > My current/target environment are as follows: > > - Visual Studio 2017 > - Freetype 2.10.4, Zlib 1.2.3 (preferably using 1.2.11), Jpeg-9d > - Windows 10 (19041.985) 64bit > - Target PoDoFo libraries: 32bit and 64bit using a shared library (dll) > > > > Some other things I have noticed (which may all lead to the same core > issue) is that other functions that are used in other examples such as > defining the document’s information (e.g. > document.GetInfo()->SetCreator(…)) is throwing a NULLPTR error. Again this > all works within the PoDoFo solution but not in any external solutions. > > > > I hope I have explained the situation well, but if you require any further > details, please don’t hesitate to reply. > > > > Thanks, > > Blayne > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users >
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users