Hi Michal, Thanks for your response, latest PODOFO from master works fine, we shall continue to use it.
With best regards, Santhosh Boloshankar Hiremath Siemens Technology and Services Private Limited CT RDA DS AA PD ARCH 84, Hosur Road Bengaluru 560100, India Tel.: +91 80 33131303 Fax: +91 80 33134503 Mobile: +91 9449250810 mailto:[email protected] www.siemens.co.in/STS<http://www.siemens.co.in/STS> www.siemens.com/ingenuityforlife<https://siemens.com/ingenuityforlife> [www.siemens.com/ingenuityforlife] Registered Office: Plot No. 2, Sector No. 2, Kharghar Node, Navi Mumbai – 410210. Telephone +91 22 39672000. Fax +91 22 27740169. Other Offices: Bangalore, Chennai, Gurgaon, Noida, Pune. Corporate Identity number: U99999MH1986PTC093854 From: Michal Sudolsky <[email protected]> Sent: Thursday, February 14, 2019 6:20 PM To: Hiremath, Santhosh Boloshankar (CT RDA DS AA PD ARCH) <[email protected]> Cc: [email protected]; K., Nallasivan (CT RDA DS AA PD NM FH DH1) <[email protected]>; Sarathe, Omprakash (CT RDA DS AA PD NM FH DH1) <[email protected]> Subject: Re: [Podofo-users] Font Spacing issue : podofo 0.9.6 Hi, So as wrote "zyx" I would either use latest podofo from master or if this is not option then for now either do not use identity encoding or use font subsetting (with any encoding) which should work on 0.9.6: doc.CreateFontSubset("Helvetica", false, false, false, PdfEncodingFactory::GlobalIdentityEncodingInstance()); On Thu, Feb 14, 2019 at 7:37 AM Hiremath, Santhosh Boloshankar <[email protected]<mailto:[email protected]>> wrote: Hi Michal Sudolsky, Thanks for your timely response, Yes we used base 14 font with Identity encoding. Please find attached sample pdf generated using podofo 0.9.6. Following is the code snippet used for creation of font: const PoDoFo::PdfEncoding* const pEncoding = PoDoFo::PdfEncodingFactory::GlobalIdentityEncodingInstance(); // required for UTF8 characters if (pEncoding) { if (I18_CHINESE == this->reportGenLanguage) { this->pFont = this->doc->CreateFont(SECONDARY_PDF_FONT_NAME.c_str(), false, false, false, pEncoding); if (!this->pFont) { ConfigurableLogger::log(PRIO_WARNING, "PDF Error: Failed to get PDF font for Chinese language."); } } else { this->pFont = this->doc->CreateFont(PRIMARY_PDF_FONT_NAME.c_str(), false, false, false, pEncoding); if (!this->pFont) { ConfigurableLogger::log(PRIO_WARNING, "PDF Error: Failed to get PDF font."); } } } if (this->painter && this->pFont) { this->InitializeDefaultPainterSettings(this->pPage, this->pFont, this->painter, this->pdfFontSize); this->WriteHeaderFooterToPdfPage(this->pPage, this->painter, this->doc, this->pFont, this->reportGenLanguage, this->confidentiality); isPdfInitialSettingsDone = TRUE; this->UpdatePdfTableColumnWidths(); } With best regards, Santhosh Boloshankar Hiremath Siemens Technology and Services Private Limited CT RDA DS AA PD ARCH 84, Hosur Road Bengaluru 560100, India Tel.: +91 80 33131303 Fax: +91 80 33134503 Mobile: +91 9449250810 mailto:[email protected] www.siemens.co.in/STS<http://www.siemens.co.in/STS> www.siemens.com/ingenuityforlife<https://siemens.com/ingenuityforlife> [www.siemens.com/ingenuityforlife] Registered Office: Plot No. 2, Sector No. 2, Kharghar Node, Navi Mumbai – 410210. Telephone +91 22 39672000. Fax +91 22 27740169. Other Offices: Bangalore, Chennai, Gurgaon, Noida, Pune. Corporate Identity number: U99999MH1986PTC093854 From: Michal Sudolsky <[email protected]<mailto:[email protected]>> Sent: Wednesday, February 13, 2019 9:02 PM To: Hiremath, Santhosh Boloshankar (CT RDA DS AA PD ARCH) <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]>; K., Nallasivan (CT RDA DS AA PD NM FH DH1) <[email protected]<mailto:[email protected]>>; Sarathe, Omprakash (CT RDA DS AA PD NM FH DH1) <[email protected]<mailto:[email protected]>> Subject: Re: [Podofo-users] Font Spacing issue : podofo 0.9.6 Hi, Can you provide some details? PDF and or code snippet causing this. Did you use base 14 font (Helvetica, Courier, Times-Roman) with identity encoding? On Wed, Feb 13, 2019 at 4:24 PM Hiremath, Santhosh Boloshankar <[email protected]<mailto:[email protected]>> wrote: Hi, Environment used for compilation : 1. Visual Studio 2015 2. Operating system : windows 10 We migrated from podofo 0.9.3 to 0.9.6 but we face following issue of character font spacing in podofo 0.9.6 is twice than earlier 0.9.3 for utf 8 encoding Eg. It shows as Validation(from podofo 0.9.6) Instead of Validation (from podofo 0.9.3) and works perfectly fine for default encoding Request your support by letting me know anything changed between 0.9.3 and 0.9.6 versions or am I missing any settings of compilations Note : I have little knowledge about characters and spacing in rich text format or pdf format. With best regards, Santhosh Boloshankar Hiremath Siemens Technology and Services Private Limited CT RDA DS AA PD ARCH 84, Hosur Road Bengaluru 560100, India Tel.: +91 80 33131303 Fax: +91 80 33134503 Mobile: +91 9449250810 mailto:[email protected] www.siemens.co.in/STS<http://www.siemens.co.in/STS> www.siemens.com/ingenuityforlife<https://siemens.com/ingenuityforlife> [www.siemens.com/ingenuityforlife] Registered Office: Plot No. 2, Sector No. 2, Kharghar Node, Navi Mumbai – 410210. Telephone +91 22 39672000. Fax +91 22 27740169. Other Offices: Bangalore, Chennai, Gurgaon, Noida, Pune. Corporate Identity number: U99999MH1986PTC093854 From: Hiremath, Santhosh Boloshankar (CT RDA DS AA PD ARCH) Sent: Wednesday, February 13, 2019 8:35 PM To: [email protected]<mailto:[email protected]> Cc: K., Nallasivan (CT RDA DS AA PD NM FH DH1) <[email protected]<mailto:[email protected]>>; Sarathe, Omprakash (CT RDA DS AA PD NM FH DH1) <[email protected]<mailto:[email protected]>> Subject: Font Spacing issue : podofo 0.9.6 Hi, We migrated from podofo 0.9.3 to 0.9.6 but we face following issue of character font spacing in podofo 0.9.6 is twice than earlier 0.9.3 for utf 8 encoding Eg. It shows as Validation(from podofo 0.9.6) Instead of Validation (from podofo 0.9.3) and works perfectly fine for default encoding Request your support let me know anything changed between 0.9.3 and 0.9.6 versions or am I missing any settings of compilations Note : I have little knowledge about characters and spacing in rich text format or pdf format. With best regards, Santhosh Boloshankar Hiremath Siemens Technology and Services Private Limited CT RDA DS AA PD ARCH 84, Hosur Road Bengaluru 560100, India Tel.: +91 80 33131303 Fax: +91 80 33134503 Mobile: +91 9449250810 mailto:[email protected] www.siemens.co.in/STS<http://www.siemens.co.in/STS> www.siemens.com/ingenuityforlife<https://siemens.com/ingenuityforlife> [www.siemens.com/ingenuityforlife] Registered Office: Plot No. 2, Sector No. 2, Kharghar Node, Navi Mumbai – 410210. Telephone +91 22 39672000. Fax +91 22 27740169. Other Offices: Bangalore, Chennai, Gurgaon, Noida, Pune. Corporate Identity number: U99999MH1986PTC093854 _______________________________________________ Podofo-users mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/podofo-users
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
