Hi,

I am having issues with PoDoFo(0.9.3) font size.

Here, font size is not updating with default value 12 always even I set into 
pdfpainter font.

doc->Load("Input.pdf");
PdfRect rect(100, 300, 36, 200);
PdfPage *page = doc->GetPage(0);
PdfPainter painter;
painter.SetPage(page);
PdfEncoding *encoding = new PdfIdentityEncoding();
PdfFont * fnt = doc->CreateFontSubset("Book Antiqua", false, false, false, 
encoding);
fnt->SetFontSize(60);
painter.SetFont(fnt);
painter.SetColor(1, 0, 0);
PdfString str("Sample Text");
painter.DrawText(100, 100, str);

is anything wrong in this?

Regards,
Dinesh


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information 
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in 
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on 
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the 
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written 
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please 
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and 
other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to