I'm in doubt. I've tried what you've suggested, but I'm not sure if I'm 
understand. I've tried one at time, but no increased quality founded.

The code I use is the following:

    pdf=new DynaPDF
    
    pdf.SetLicenseKey "..."
    
    if not pdf.CreateNewPDF(f) then
      Return
    end if
    
    'call pdf.SetJPEGQuality(100)
    'call pdf.SetResolution(300)
    call pdf.SetSaveNewImageFormat(false)
    call pdf.SetCompressionFilter(pdf.kcfFlate)
    
    g=new DynaPDFGraphics(pdf,20.0,20.0)

Then I read (from a db) the background image, I dray some text around the page. 
I use the same instructions that I use in the printing (paper) functions.

pic=f.OpenAsJPEGMBS

(g as DynaPDFGraphics)
g.DrawPicture pic,0,0,ps.PageWidth,ps.PageHeight,0,0,pic.Width,pic.Height


Any ideas? 

Il giorno 05/dic/2011, alle ore 21:02, Christian Schmitz ha scritto:

> There are several settings you should apply:
> 
> call p.SetSaveNewImageFormat(false)
> 
> Makes sure pictures are not compressed again, but we add original whenever 
> possible. For example keep JPEG as JPEG in the PDF.
> 
> call p.SetCompressionFilter(p.kcfFlate)
> 
> When compressing, use flat compression (= no compression)
> 
> call p.SetJPEGQuality(70)
> 
> Defines for JPEG compression what quality to use. But that is not needed for 
> kcfFlate.
> 
> call p.SetResolution(300)
> 
> this defines the maximum resolution for pictures. As default is 150, you may 
> want to set it to something bigger.
> 
> Please try them and tell me if that helps.
> 
> Greetings
> Christian
> 
> -- 
> See you in Orlando, Florida for Real World 2012
> 
> More details and registration here:
> http://www.realsoftware.com/community/realworld.php
> 
> 
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> 


------

Sergio Tamborini
Brescia
http://www.system-i.it


"C'è un equivoco di fondo. Si dice che il politico che ha avuto frequentazioni 
mafiose, se non viene giudicato colpevole dalla magistratura, è un uomo onesto. 
No! La magistratura può fare solo accertamenti di carattere giudiziale. Le 
istituzioni hanno il dovere di estromettere gli uomini politici vicini alla 
mafia, per essere oneste e apparire tali"
Paolo Borsellino


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to