Using Dompdf to download html contents in pdf

Hi,

I am using Dompdf to download html contents in pdf. It works fine for english, but it does not detect Indian fonts.

The following is my code:

$html = mb_convert_encoding($contents, 'HTML-ENTITIES', 'UTF-8');

$dompdf = new Dompdf();
$dompdf->loadHtml($html);
$dompdf->render();

$dompdf->stream();

for Indian languages, it outputs "??????????????" . Also the font-size for Indian fonts is very small Could you please help me resolve the issue?

Thanks,

Help with Drupal 8 and LightOpenID

I am working on my first Drupal 8 website, and I am trying to learn it's framework and systems as I am entirely used to Drupal 7 development. I am trying to build a module that allows authenticated users on my website to link their Steam ID to their account.

There is a library called LightOpenID which is used for this (steam has light open ID support), but I am having difficulties getting it to work with Drupals routing system.

Pathauto not working

After an upgrade from D7 to D8 pathauto ist not working. 

The status report says "The URL alias field must be installed.". Is this the problem? How can I solve this?

Set Email Field In Registration Page "Not Required"

Hello Guys
I need to set Email-Field in registration page "Not Required".
In fact I want users would be able to register with only username_field and password_field.

Thanks

How to display number of properties in google map

Hello,

I have a requirement and I just cant figure it out how. 

It is a real estate website. I need to add list of properties. I have a content type which has title, body, address, img, etc. 

I added 5 houses for the content type. 

Example:

House 1 - County 1, state 1

House 2 - county 1. state 1.

House 3 - county 3, state 1

House 4 - county 1, state 2

House 5 - county 1, state 2

I like to create a google map block which will show a numeric number of houses by the counties. 

Map should show:

Writing module to assign role to user after purchasing a product

I'm am trying to write a module that will assign a role to a user on once they have purchased a product (Drupal 8.8.2, commerce 8.x-2.16). I have googled and there are bits and pieces (e.g. "write a new class called an event subscriber to assign that user role on the "placed" transition") that suggest how this could be done.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x