SFDT to PDF

Hi, is there a easy way to convert SFDT to PDF using only Javascript or PHP (or both)?


3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team October 27, 2021 04:03 AM UTC

Hi Leander, 

Syncfusion Greetings! 

In client side(Javascript) , using pdf-export component (works like print as PDF) – all pages will be converted to image and inserted as pdf pages. (can’t search the text)    
   
We have provided client-side export pdf as image from version 19.1.67. To use this feature, Kindly install below package for Pdf export       
   
   
Please check below sample     
   
https://stackblitz.com/edit/t2e7aa?file=title-bar.ts   (Line number 168)       
   
In this sample,      
     
1. The document content in the exported pdf is preserved as image.       
2. You can directly download the pdf file using download option.     
   
   
     
   

Please let us know if you have any questions. 

Regards, 
Suriya M. 


Marked as answer

KU Kundan April 23, 2022 04:49 PM UTC

Can I get js implementation for the same please.



SM Suriya Murugan Syncfusion Team April 25, 2022 06:10 AM UTC

Hi Kundan,


Please find the pdf export using javascript in clientside:

https://stackblitz.com/edit/grbkbj?file=index.js

We don't have backend support in PHP.


Please check below documentation for reference:

https://ej2.syncfusion.com/documentation/document-editor/how-to/export-document-as-pdf/


Regards,

Suriya M.


Loader.
Up arrow icon