PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

PDF Printing issue for few users
http://forum.pdfsharp.com/viewtopic.php?f=2&t=2061
Page 1 of 1

Author:  Vadivelan [ Wed Jun 20, 2012 12:55 pm ]
Post subject:  PDF Printing issue for few users

Hi,

I have the printing issue in this pdf only for few users.

The printing issue is that the user can view the pdf information properly but when they take print out , the information on the pdf is misaligned.

Please find attached the file for the screenshot of the printing issue.
Attachment:
PrintingIssue.png
PrintingIssue.png [ 126.27 KiB | Viewed 8266 times ]


The users doubt on the font encoding used in this pdf.

I used the below code to define the font encoding.


XFont font = new XFont("Arial", 10, "Regular", new XPdfFontOptions(PdfSharp.Pdf.PdfFontEncoding.Unicode, PdfSharp.Pdf.PdfFontEmbedding.Always));

Please find attaced the screenshot for the pdf properties to show this encoding information.

Attachment:
DocumentProperties.png
DocumentProperties.png [ 43.63 KiB | Viewed 8266 times ]


I planned to change the above code like below.
XFont font = new XFont("Arial", 10, "Regular",new XPdfFontOptions(PdfSharp.Pdf.PdfFontEncoding.WinAnsi, PdfSharp.Pdf.PdfFontEmbedding.Always));

Please let me know whether the above code will work or any other suggestion.

And i assume that these users getting this issue when they taking print out through virtual printer which may have an issue with encoding.

Author:  Thomas Hoevel [ Wed Jun 20, 2012 1:45 pm ]
Post subject:  Re: PDF Printing issue for few users

Hi!

I don't see Arial in the Document Properties on your screen shot.
Making changes to a font that is not use in the document probably will have no effect on the PDF file which is generated.

Author:  Vadivelan [ Thu Jun 21, 2012 12:30 pm ]
Post subject:  Re: PDF Printing issue for few users

Hi,

I mentioned this font-"Arial" for an example.

Actually we are using CHSans (customized font) which needs to be installed (wint be available by default).

Actually we are not fully embedding this customized font.Instead, we are subseting this font.

I got a info. about these two embedding types.

Embedding Fonts
If you embed the whole font in the PDF, the person on the other end can make changes to it even if he didn't have your font, if he has the full version of Acrobat or another program with the capability of modifying PDFs. The file size of the PDF would also be bigger because you are embedding the entire font.

Subsetting Fonts
If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font. When you subset a font, you usually just embed the characters you are using (obviously it depends on how you are subsetting your font). That's why somebody on another computer would have to have your same font in order to make changes.


As of now , i have a solution to change the subset type to ANSI line below.

XFont font = new XFont("Arial", 10, "Regular",new XPdfFontOptions(PdfSharp.Pdf.PdfFontEncoding.WinAnsi, PdfSharp.Pdf.PdfFontEmbedding.Always));

But if it is not working then i planned to change the embedding type.

Please let me know how to embed the font instead of subset.

Author:  Vadivelan [ Fri Jun 22, 2012 3:57 pm ]
Post subject:  Re: PDF Printing issue for few users

Hi,

Gentle Reminder.I am looking forward to your reply.

Please let me know if you are not clear with my explanation.

Thanks & regards
Vadivelan.

Author:  () => true [ Sat Jun 23, 2012 4:14 pm ]
Post subject:  Re: PDF Printing issue for few users

Hi!

AFAIK you can only choose between no embedding or embedding of the required subset. Embedding of the complete fonts is IIRC not implemented.

I don't see a relation between font embedding and the printing problem shown in your first post.

Author:  Thariama [ Mon Jul 30, 2018 2:11 pm ]
Post subject:  Re: PDF Printing issue for few users

How can i choose to embed the required subset only?

Author:  Thomas Hoevel [ Mon Jul 30, 2018 2:21 pm ]
Post subject:  Re: PDF Printing issue for few users

Thariama wrote:
How can i choose to embed the required subset only?
Subsetting or full embedding is done by PDFsharp automatically and AFAIK there is no control over it.

This thread is from 2012 and therefore it cannot be about PDFsharp 1.50.
The behavior could be different between the current version PDFsharp 1.50 RC2 and the version discussed here.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/