Hi, I'm creating an upgrade application using PDFSharp 1.50. The old application using PDFSharp 1.20, so I need to create new application for generating a pdf.
So, when user click a button, it will generate a pdf where it contains of text and an image.
I'm setting this document to CMYK color mode by default, so the colour image also will use this mode.
Code:
document.Options.ColorMode = PdfColorMode.Cmyk;
Here is the problem. When I'm checking the generated pdf output preview using Acrobat Reader Pro, I'm changing the Show only CMYK, certain part of image is missing then I try to show only Gray, the missing image show up but the other image and text is missing.
Below is the screenshot of the behaviour using PDFSharp 1.50:
Attachment:
2.png [ 73.03 KiB | Viewed 11739 times ]
Attachment:
3.png [ 153.54 KiB | Viewed 11739 times ]
When I checking the old pdf generated by PDFSharp 1.20, this issue doesn't exist. When selecting to show CMYK, no image and text will show up. But, when selecting Gray, both image will shown up. Here is the screenshot of pdf using PDFSharp 1.20:
Attachment:
5.png [ 204.31 KiB | Viewed 11739 times ]
Then I try to change text color only using this code below. All text will show up in CMYK mode, but not in Gray mode when checking in Acrobat Reader Pro:
Code:
XBrush grayScale_0 = new XSolidBrush(XColor.FromGrayScale(0));
XBrush black_cmyk = new XSolidBrush(XColor.FromCmyk(0, 0, 0, 100));
XBrush black_rgb = new XSolidBrush(XColor.FromArgb(0, 0, 0));
XBrushes.Black
So, is there a function in PDFSharp 1.50 to do this, change font color and image color mode to Gray?
Or this function only exist in v1.20? Please anyone help me..Thanks.