Low Resolution @ MBS pdf.Insertpicture

  1. 3 months ago

    Hi everybody!

    Did anyone face low resolution or blurry pictures when insert Pictures to a PDF using MBS plugins?
    So, I have a good resolution picture, but when I do:

    call pdf.InsertPicture(construplanurLogo, x, y, 181, 48)

    Any suggestions?

    @ChristianSchmitz What type of picture?
    What is set as resolution in DynaPDF?
    Or maybe email me test project?

    @ChristianSchmitz What type of picture?
    What is set as resolution in DynaPDF?
    Or maybe email me test project?

    of Course, I got it:

    I used pdf.SetResolution(xxx)

    I notice that If you don't assign this, approx it sets a resolution of 72dpi
    :D

  2. Christian S

    Aug 11 Pre-Release Testers, Xojo Pro Germany

    What type of picture?
    What is set as resolution in DynaPDF?
    Or maybe email me test project?

  3. @ChristianSchmitz What type of picture?
    What is set as resolution in DynaPDF?
    Or maybe email me test project?

    Ok I'll send it. Its a JPEG
    I don't have resolution set in dynaPDf

  4. Gerardo G

    is not verified Aug 16 Answer Mexico City

    @ChristianSchmitz What type of picture?
    What is set as resolution in DynaPDF?
    Or maybe email me test project?

    @ChristianSchmitz What type of picture?
    What is set as resolution in DynaPDF?
    Or maybe email me test project?

    of Course, I got it:

    I used pdf.SetResolution(xxx)

    I notice that If you don't assign this, approx it sets a resolution of 72dpi
    :D

  5. Christian S

    Aug 16 Pre-Release Testers, Xojo Pro Germany

    Still waiting for test project with problems.

  6. 6 weeks ago

    Marcel Z

    Oct 6 Kirn, RP, Germany.
    Edited 6 weeks ago

    I have the same problem. My pictures are blurred in low resolution too at the printed pdf.
    Perhaps I do something wrong?

    My code:

    call pdf.CreateNewPDF nil
    call pdf.SetDocInfo pdf.kdiSubject, "firmenname"
    call pdf.SetDocInfo pdf.kdiProducer, "firmenname"
    call pdf.SetDocInfo pdf.kdiTitle, "firmenname"
    
    call pdf.SetResolution 300
    // call pdf.SetJPEGQuality(1000)  // here I tried different values from 10, 50, 80, 90, 100, 1000 without a change.
    call pdf.SetPageCoords pdf.kpcTopDown
    call pdf.Append
    call pdf.SetOrientationEx 90
    
    
    // get brand logo and print it:
    dim p as Picture 
    DIM URL as string = "http://prins.muellermeirer.com:8080/mz/daten/bilder/etikettendruck/MZEtikettenLogo_gerryweber.jpg"
    Dim http As New HTTPSocket
    Dim data As MemoryBlock = http.Get(URL, 5)
    p =  Picture.FromData(Data)
    
    // and now print it:
    call pdf.InsertPicture(p, 20 , 20,  120, 13)
  7. Christian S

    Oct 6 Pre-Release Testers, Xojo Pro Germany

    You have a jpeg there. Maybe you better use InsertInsert and pass it right away?

  8. Marcel Z

    Oct 6 Kirn, RP, Germany.

    You have a jpeg there. Maybe you better use InsertInsert and pass it right away?

    What is "InsertInsert"? And the right way?

  9. Christian S

    Oct 6 Pre-Release Testers, Xojo Pro Germany

    You can pass the jpeg string buffer directly here:

    InsertImageFromBuffer(PosX as Double, PosY as Double, ScaleWidth as Double, ScaleHeight as Double, Buffer as string, index as Integer = 1) as Integer

or Sign Up to reply!