Re: Printing to PDF -- poor bitmap quality



I tried each of the 9 different possible modes, but no luck. And
again, everything looks great when my device context is the screen, an
actual printer, or even a TIFF. This tells me that it has to be a
problem with Acrobat. Unfortunately, they've been no help.

The bitmap that I'm trying to render is actually the result of some
code that Ken Tucker posted for rendering the contents of a
RichTextBox. It works wonderfully. Unfortunately, since it appears
that printing to PDF doesn't work well with bitmaps, I'm going to have
to find a way to parse RTF markup and render it using DrawString,
Fonts, etc. Yippee...

On Feb 8, 1:08 pm, "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Try setting the InterpolationMode on the Graphics object to one of the
antialiased settings. I recommend HighQualityBiLinear as BiCubic is
slower and seems to deliver a worse result for all it's supposed advantages.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consultinghttp://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Trickshttp://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQhttp://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



Jeff wrote:
I'm rendering text (DrawString) and images (DrawImage). The output
looks great on screen and looks great when printing to a printer (both
Laser and Inkjet).

When printing to Adobe PDF (which is what my users will mostly be
doing), the sections rendered using DrawString look great, but the
images rendered using DrawImage look blocky and pixellated. I've
tried modifying the Adobe Settings hoping that it would increase the
image quality, but no luck. I've tried several ideas found in Acrobat
Support, but no luck.

Any suggestions?- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: Printing graphics/text that span multiple pages
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... You need to figure out how many pages you need and then render your ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Printing graphics/text that span multiple pages
    ... but you are correct --- if I pass the actual Graphics ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... You need to figure out how many pages you need and then render your ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Printing to PDF -- poor bitmap quality
    ... I wish you luck on that one. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... The bitmap that I'm trying to render is actually the result of some ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: GDI+ renders some phrases without spaces
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... The font comes out ... >>> I would assume IE uses the same GDI calls to render the font, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Printing graphics/text that span multiple pages
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... You need to figure out how many pages you need and then render your ... I have a class that renders graphics and text onto a passed-in HDC. ... If the graphics/text that is rendered spans multiple pages, ...
    (microsoft.public.dotnet.framework.drawing)