# PDF email attachment garbled

**URL:** <https://forum.manager.io/t/pdf-email-attachment-garbled/18067>\
**Category:** Uncategorized\
**Created:** [September 19, 2018, 9:09am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067 "2018-09-19T09:09:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 19, 2018, 9:09am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/1 "2018-09-19T09:09:28Z")

</div>

I have upgraded to this desktop version today  
tried to send the invoice with email as I usually do and the pdf attachment is unreadable

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/c/d/cdcf5ab7b605890c0eaf9239ed149b4041e0e88f.jpeg)

If I export the invoice in pdf is shown ok and sent it manually through my email

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/f/f/ff022e695184ddec0fe448543bf46b9a4a7ae72e.png)

tried to install previous version but now it’s not compatible with my company file.  
Please help

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [September 19, 2018, 11:37am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/2 "2018-09-19T11:37:05Z")

</div>

I suspect there is a character in your invoice which is causing this issue. Any chance you could send your accounting file to my email `lubos@manager.io` ? If I can reproduce this issue locally, I will be able to fix it.

---

<div class="post-metadata">

**Author:** ![maximilien03](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@maximilien03](https://forum.manager.io/u/maximilien03)\
**Post date:** [September 19, 2018, 12:11pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/3 "2018-09-19T12:11:47Z")

</div>

Hi.

I just upgraded Manager (Server Edition) to version 18.9.60 and I have the same problem with reports (I tried profit and loss statement).  
The only way I can get a readable report is by using the Print button. The PDF button and the emailing function give me the same unreadable document.  
Tried on 3 different businesses with the same result.

I’m using Manager in French. I guess it might be caused by some “é” or “è” used in French.

It was working perfectly with the previous version (but I did not update Manager for a few months).

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 19, 2018, 1:39pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/4 "2018-09-19T13:39:52Z")

</div>

just sent you a backup copy of my company at your email

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 19, 2018, 2:39pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/5 "2018-09-19T14:39:21Z")

</div>

Hi @lubos  
following up on the problem to inform you the following:  
PDF is created ok and seen ok on my laptop. Using Linux Mint 18.3  
The problem rises when it comes to email.  
I am using google smtp from manager to send the attachments; the pdf gets garbled after it is sent through email.  
I also tried to send the invoice after I saved it as pdf in my laptop; same problem again in this case.  
To be most certain, I tried to send the invoice pdf through office365 mail server. The problem again is the same.

So something is being done when the invoice is attached in an email.

Hope this information may help you better to understand and isolate the problem

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 19, 2018, 2:45pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/6 "2018-09-19T14:45:03Z")

</div>

@lubos,  
see font properties in the pdf with the latest version:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/4/b/4b837697a432bb80ab2812aacae5c08083738618.png)

and see the fonts used in the pdf with the previous version which was ok:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/6/d/6d692f9ab98bafc1786dc3fdc54a365d1db0f712.png)

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 21, 2018, 5:16pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/7 "2018-09-21T17:16:16Z")

</div>

I tend to believe that the problem lies in the change of fonts  
In my screenshots above, the previous (good) version was with Type 1 fonts while the last version PDFs are with TTF…  
Suggest you check this out

---

<div class="post-metadata">

**Author:** ![Paparazzi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/paparazzi/32/15236_2.png) [@Paparazzi](https://forum.manager.io/u/Paparazzi)\
**Post date:** [September 23, 2018, 10:42am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/8 "2018-09-23T10:42:33Z")

</div>

Almost a similar problem but with regard to the logo …

When I take a report or print, I get:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/e/f/ef7bcb5c87106b1ee817e6aaccc0e3415ff69ba9.png)

However, when I click the PDF button or email (in the attachment), the logo gets messed up. See below:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/6/5/655daa1c7dab714dad408503cbec475ef71b9581.png)

In this case, it’s an image file and has nothing to do with the font. 😕

---

<div class="post-metadata">

**Author:** ![compuit](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/compuit/32/66_2.png) [@compuit](https://forum.manager.io/u/compuit)\
**Post date:** [September 23, 2018, 11:37am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/9 "2018-09-23T11:37:30Z")

</div>

**Manager Server 18.9.81 on Ubuntu Server** unable to email or PDF.

Below error when attempting to email.

 ![email%20failure](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/0/f/0f91e05709b5956dc73220db500a649cba944d94.png)

Cannot not generate PDFs

Below error when attempted to PDF

 ![PDF%20Failure](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/1/6/16dbb05f820de5c17a9f8cde7764f22b3b61237b.png)

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [September 23, 2018, 12:00pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/10 "2018-09-23T12:00:09Z")

</div>

@Paparazzi @compuit can you try the latest version (18.9.82) to see if it fixes the issue?

---

<div class="post-metadata">

**Author:** ![compuit](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/compuit/32/66_2.png) [@compuit](https://forum.manager.io/u/compuit)\
**Post date:** [September 23, 2018, 12:02pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/11 "2018-09-23T12:02:47Z")

</div>

Will do … OK Version 18.9.82 tested back to normal for **Email** and **PDF** generation. Thank you.

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 23, 2018, 1:51pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/12 "2018-09-23T13:51:54Z")

</div>

tried to modify the plain theme by setting font to Arial  
it seems that the program accepted my change only for company name which now appears correctly in the pdf  
the properties of the pdf output now show  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/9/e/9e6389fb81d27aad04a7ef7062cc6ed8fecc5dee.png)

What we have here is Arial TTF (CID) and Arial Bold TTF (without the CID)

I am almost convinced that here’s the problem, the (CID) version of TTF which I told you @Lubos, what do you think?

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 23, 2018, 5:54pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/13 "2018-09-23T17:54:33Z")

</div>

I have installed the latest version (18.9.83) on a windows machine, loaded my company and sent email with pdf invoice.  
It works fine!  
So @lubos it is clear now that the problem is on Linux version? Hope this helps

---

<div class="post-metadata">

**Author:** ![Paparazzi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/paparazzi/32/15236_2.png) [@Paparazzi](https://forum.manager.io/u/Paparazzi)\
**Post date:** [September 23, 2018, 7:17pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/14 "2018-09-23T19:17:03Z")

</div>

Works well now! Thank you!  
🙂

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 26, 2018, 12:42pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/15 "2018-09-26T12:42:03Z")

</div>

@lubos I believe that I found a solution to the problem in Linux…  
I will post comments for it later

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [September 27, 2018, 2:33am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/16 "2018-09-27T02:33:33Z")

</div>

@nichri that’s great to hear. I’m curious what you came up with.

---

<div class="post-metadata">

**Author:** ![Matheewe](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Matheewe](https://forum.manager.io/u/Matheewe)\
**Post date:** [September 27, 2018, 4:56pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/17 "2018-09-27T16:56:19Z")

</div>

I need to convert all PDF to word file. Looking for a reliable software. But not sure which one would be best for me. Thanks!

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [September 27, 2018, 4:58pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/18 "2018-09-27T16:58:56Z")

</div>

@Matheewe, your question has nothing to do with Manager. Please limit discussion on this forum to the Manager application.

---

<div class="post-metadata">

**Author:** ![nichri](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nichri](https://forum.manager.io/u/nichri)\
**Post date:** [September 29, 2018, 7:24am UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/19 "2018-09-29T07:24:23Z")

</div>

sorry for the delay in posting.  
I took the default theme (practically any theme should work) and added code “font-family:Nimbus Roman” in all table codes. FYI this font is included in Linux default fonts and it’s Type 1 font.

When I issue a pdf document, it switches font to Helvetica, Type 1 font which is readable (tested successfully) in any windows or linux machine. It was sent through email successfully

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 3:08pm UTC](https://forum.manager.io/t/pdf-email-attachment-garbled/18067/20 "2023-01-18T15:08:56Z")

</div>


