No image in some pdf

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
gagc65
Posts: 7
Joined: Mon Dec 21 2015

No image in some pdf

Post by gagc65 » Mon Dec 21 2015

Hello

Excuse me for my English, it is a Google translation

I use PDF Converter v5.0 to generate PDF invoices to send to clients.
This is a batch process for multiple invoices (2000 approx).
A logo is displayed on the first page of invoices.
But on some bills, the logo does not appear and it is quite true random.
During the last impression, 1 in 10 had no logo and distributed everywhere
in the lot.

Does someone have an idea ?

Thank you
Charles

Jose
Amyuni Team
Posts: 550
Joined: Tue Oct 01 2002
Contact:

Re: No image in some pdf

Post by Jose » Tue Dec 22 2015

Hello,

We are not aware of this issue but if you are not using the latest v5.0.1.9 version of the Amyuni PDF Converter, I would suggest that you download and install this version. Once installed you can verify if this issue still occurs?

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite

gagc65
Posts: 7
Joined: Mon Dec 21 2015

Re: No image in some pdf

Post by gagc65 » Tue Jan 12 2016

I use version 5.0.1.9

Sounds like a memory problem, some bills are quite large (over 1000 pages).

Thanks

rfroli
Posts: 1
Joined: Wed Jan 20 2016

Re: No image in some pdf

Post by rfroli » Mon Jan 25 2016

Hi,

We have a similar problem with our application.
We are printing a custom Dashboard containing pictures, and some pictures are displayer, while others not.

* It only happens when the driver is called programatically, but not when we "manually" print with the driver of the desktop edition.
* It only happens when our jpeg images are resized to a larger size in the document, not when they are downsized.

We don't call any particular function of the Amyuni API, except DriverInit, EnablePrinter, SetDefaultDirectory and SetDefaultFileName.
We have tried to play with SetFileNameOptions and SetImageOptions to fix the problem with no result.

We are using the latest version of the drivers.

Can you please help us?

We can provide a postscript file of our Dashboard if needed.

gagc65
Posts: 7
Joined: Mon Dec 21 2015

Re: No image in some pdf

Post by gagc65 » Mon Jan 25 2016

My jpeg picture are resized to a smaller size

I tried displaying the original format with the same result

gagc65
Posts: 7
Joined: Mon Dec 21 2015

Re: No image in some pdf

Post by gagc65 » Mon Feb 01 2016

I did some tests and add images to other places in the document.
Images are displayed either all or no picture appear.

gagc65
Posts: 7
Joined: Mon Dec 21 2015

Re: No image in some pdf

Post by gagc65 » Wed Feb 03 2016

I tested with another method used in time before using Amyuni and all bills have their image. I prefer the quality achieved by Amyuni but it gives me an image problem.

gagc65
Posts: 7
Joined: Mon Dec 21 2015

Re: No image in some pdf

Post by gagc65 » Thu Feb 04 2016

Really strange behavior as on 2252 converted bills is the result obtained by printing order:

1416 ok, 47 bad,
38 ok, 8 bad,
51 ok, 2 bad,
51 ok, 14 bad,
2 ok, 13 bad,
29 ok, 10 bad,
27 ok, 1 bad,
17 ok, 6 bad,
282 ok, 4 bad,
38 ok, 150 bad,
46 ok

A total of 255 bills without picture

Jose
Amyuni Team
Posts: 550
Joined: Tue Oct 01 2002
Contact:

Re: No image in some pdf

Post by Jose » Fri Feb 12 2016

Hi,

Although I don’t suspect that there is an issue with the PDF Converter, I created a simple test application that printed a 2000 page document with a “logo” image in on each page. Using the v5.0.1.9 of the PDF Converter I was unable to reproduce your issue.

Code: Select all


int globalCounter = 1;

private void btnPrint_Click(object sender, EventArgs e)
{
    //Declare object
    CDIntfEx.CDIntfEx PDF = new CDIntfEx.CDIntfEx();

    //Initialize printer
    PDF.DriverInit(PDFprinter);
            
    PDF.DefaultDirectory = "c:\temp";
    PDF.DefaultFileName = "c:\\temp\\print_2000.pdf";

    PDF.VerticalMargin = 0;
    PDF.HorizontalMargin = 0;
    PDF.ImageOptions = 3;
    PDF.JPegLevel = 7;
    PDF.JPEGCompression = true;
    PDF.Resolution = 600;
    PDF.SetDefaultConfig();

    PDF.FileNameOptionsEx = 3;

    string currentPrinter = printDocument1.PrinterSettings.PrinterName;
    printDocument1.PrinterSettings.PrinterName = PDFprinter;

    //This function needs to be called right before each print job
    PDF.EnablePrinter(strLicenseTo, strActivationCode);

    printDocument1.Print();

    PDF.FileNameOptions = 0;
    printDocument1.PrinterSettings.PrinterName = currentPrinter;
}

private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
    string text = "Amyuni Technologies";
    System.Drawing.Font printFont = new System.Drawing.Font
        ("Monotype Corsiva", 12, System.Drawing.FontStyle.Italic);

    // Draw the content.
    e.Graphics.DrawString(text, printFont,
        System.Drawing.Brushes.Black, 10, 10);

    Image img = Image.FromFile("c:\\temp\\page.png");

    // of image and for size of image.
    int x = 100;
    int y = 100;
    int width = 350;
    int height = 100;

    // Draw image to screen.
    e.Graphics.DrawImage(img, x, y, width, height);

    if (globalCounter != 2000)
    {
        e.HasMorePages = true;
    }
    else
    {
        e.HasMorePages = false;
    }

    globalCounter++;
}

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite

gagc65
Posts: 7
Joined: Mon Dec 21 2015

Re: No image in some pdf

Post by gagc65 » Mon Feb 15 2016

Thanks for your support

And if you try to do a loop and create more than 2000 files ...

Post Reply