1/26/2024 0 Comments Convert to xps to pdf onlineThe second is that the boundary condition for drawing the brush is incorrect. I've fixed this by a quick and dirty hack! In the method .ParseImageBrush immediately after the brush is created add the line: If the image brush has no explicit opacity defined it ends up transparent. The first is that when the image brush is created from the page resources, the opacity defaults to 0.0. There appear to be two bugs in the code for the XPS to PDF converter when including images. First, I render a complex custom control to a PNG file as follows: Here is a more information into what I am doing roughly speaking:ġ. Is the PDF command to display the image being used? Could it be tiling (I notice the PDFsharp PDF file uses a pattern)? Could it be something like a render or layout transform (which I remove)? Interestingly, if I print the XPS file to a PDF file using PDFCreator I get a PDF file with the image in it.Īny ideas why a single image in an XPS file would convert to PDF but not display correctly? It is a bit hard to follow the PDF command chain at a glance (I am in the process of having a closer look) but I’m fairly sure it is part of the document. I have looked inside the PDF file which PDFsharp produces and the image data is there. When I used PDFsharp to convert the XPS file to a PDF file, the image is no longer displayed. When I view the XPS file I can see the image. I have a very simple XPS document which contains only an image inside a canvas. I'm hoping someone could help with a problem I am experiencing when converting an XPS file to a PDF file using PDFsharp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |