Not embed any font converting Word files to PDF

Hi, 

I'm using Syncfusion.DocToPDFConverter class to convert a Word document (DOC or DOCX) to PDF. There is the posibility to generate a PDF document without any embedded fonts (that was used in Word document) ?

When I convert Word files to PDF, I write this:

     using (DocToPDFConverter pdfConverter = new DocToPDFConverter())
    {
          pdfConverter.Settings.EmbedFonts = false;
         pdfConverter.Settings.EmbedCompleteFonts = false;
         ...

But, when I see PDF font properties have this ("subconjunto incrustado" means embedded subset):

 

I want to get a PDF without any embedded font:



Thank you,

Regards.

6 Replies

MJ Mohanaselvam Jothi Syncfusion Team May 16, 2018 06:12 AM UTC

Hi Jorge,

Thank you for contacting Syncfusion support.

We have tried to reproduce the reported problem using the given details, but it works properly at our end. For your reference,we have attached the sample application and the output PDF generated at our end.

Sample link:
http://www.syncfusion.com/downloads/support/forum/137571/ze/GeneratePDF-2079009643.zip
Note: Please find the input Word document in the “Data” folder of above sample application.

Output PDF:
http://www.syncfusion.com/downloads/support/forum/137571/ze/OutputPDF-1674621884.zip

We suspect that the problem might be due to the contents in the input Word document which used at your end. So, could you please provide us the modified sample of above along with the input Word document which used at your end to reproduce the problem. Thereby we will analyze further and provide you the appropriate solution at the earliest.

Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face.

Please let us know if you have any other questions.

Regards,
Mohanaselvam J



UN Unknown Syncfusion Team May 16, 2018 11:49 AM UTC

Hi Mohanaselvam J,

Thank you very much for answering.

Taking advantage of this thread, I want to tell you some differences that we have seen in other PDF conversion, apart from the embedded fonts, to see if you can help us.

I have attached a zip file with two input Word documents which I need to convert to PDF (Template2.docx y Template3.docx). I have deleted all confidential data.

With the conversion of the Template2.docx we have seen:
  • two embbeded fonts
With the conversion of the Template3.docx we have seen:
  • in the row nº 5 from the first table, there is a format change from de original docx file
  • there are two squares not converted to pdf:
     

Thank you very much,
Regards.



Attachment: Templates_444cb0fd.zip


MJ Mohanaselvam Jothi Syncfusion Team May 17, 2018 01:54 PM UTC

Hi Jorge,

Thank you for your update

Regarding two embbeded fonts (Template2.docx):
When converting the Word document into PDF using DocIO if there is Unicode text in the input Word document, then the fonts are embedded into the PDF to preserve Unicode text.

Could you please provide us the more details on the purpose of unembed the fonts in PDF at your end. Thereby we will analyze the feasibilities to achieve your exact requirement and provide you more details.


Regarding there is a format change from de original docx file:
We suspect that the mentioned text appearance issue is due to the font used in Word document missing in production machine. If the font used in the Word document is not installed in production machine, then DocIO uses the “Microsoft Sans Serif” as default font. So, there is preservation difference when using “Microsoft Sans Serif” for preserving text content. We suggest you to install all the fonts which are used in the input Word document and then convert the Word document to PDF to resolve the reported problem

Regarding there are two squares not converted to pdf:
On further analyzing the reported preservation problem, we have found that two squares are the text preserved with borders in the input Word document. Currently DocIO doesn’t provide support for text border preservation in Word to PDF conversion. We have already logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. At present, we cannot provide any concrete timeline for this feature implementation. We will let you know once this feature is implemented.


Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



UN Unknown Syncfusion Team May 21, 2018 07:33 AM UTC

Hi,

Thank you very much for your support. You have helped us a lot in our project.

One last question we have is converting to PDF the examples that I provide you in the .zip file. In Template1.docx, the converted PDF has the second paragraph of the first column of the table moved to the second column.

We have detected the problem and, in the file Template2.docx, we have removed the space between the first paragraph and the second paragraph and the conversion works well.

Do you have any idea how we could solve it?

Again, thank you very much for your attention.
Regards.

Attachment: Templates_bfddfee.zip


MJ Mohanaselvam Jothi Syncfusion Team May 24, 2018 02:34 PM UTC

Hi Jorge,

Thank you for your update.

On further analyzing with the given input Word document and resultant PDF, the reported problem is raised due to multi-column balancing for equal column width based on continuous section break. We had implemented multi-column balancing for equal column width scenario, which allows to preserved content as it is ( i.e., no content and preservation losses in the resultant PDF). But, our implementation is not exactly (i.e., completely) equivalent to the Microsoft Word implementation. So, there might be some minute pagination differences in the generated PDF which is already known from our end.

To resolve that minute pagination differences, we should revamp our existing architecture of multi-column implementation with column balancing based on continuous section break. We have considered this scenario at our end and already logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. At present, we cannot provide any concrete timeline for this feature implementation. We will let you know once this feature is implemented.


Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



UN Unknown Syncfusion Team May 25, 2018 06:31 AM UTC

Hi Mohanaselvam J,

Thank you very much for your support. 

Regards.

Loader.
Up arrow icon