Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By SmithClr
#827564
I am trying to add custom font "Ubuntu-Medium.tff" in my pdf genrator function i have used the following code
Code: Select all
public override void OnOpenDocument(PdfWriter writer, Document document)
        {
            try
            {
                PrintTime = DateTime.Now;
                BaseFont  bf =aseFont.CreateFont("..\\Content\\Fonts\\Ubuntu - Medium.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
               PdfContentByte cb = writer.DirectContent;
                headerTemplate = cb.CreateTemplate(document.PageSize.Width, document.PageSize.Height);
                footerTemplate = cb.CreateTemplate(document.PageSize.Width, document.PageSize.Height);
            }
            catch (DocumentException de)
            {

            }
            catch (System.IO.IOException ioe)
            {

            }
        }
but when i try to run my solution it throws an error as "..\Content\Fonts\Ubuntu - Medium.ttf not found as file or resource."

I just want to use the Ubuntu - Medium.ttf font in my pdf. Please guide me
#829635
Process maker is furnished for the room for all standing devices. The theme of the https://www.brillassignment.co.uk/essay-writing-services/ are done for the offers. Skills are dumped for the mid use of the factors for the dials for all parts.
#829747
Whether moving or just switching, it can help if you know other people in the area. This is a great way to get information on doctors. You can ask them what doctor they use and if they https://bestdoctornearme.com feel comfortable with them. You can easily find out how experienced the doctor is and if they are open and friendly. You can ask questions about how the doctor handles existing conditions and treatments. Friends and family can be a very vital source of information.

Thanks for the help, i was also stuck while adding[…]

hi, i've created a new workspace without any probl[…]

send birthday greeting

Hello alisoroush7, You need to query the USERS […]

ProcessMaker 3.6.5 Open Source

Hello Vysakh ProcessMaker 3.7.4 will be availab[…]