web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

PDF files are too big

(0) ShareShare
ReportReport
Posted on by

Hi there,

Our company is running Axapta 3.0 SP4 (KR2).

We generate a number of documents out of Axapta every day in PDF format and have found that the file size is way too big. For example, a single A4 page is approx 430Kb.

I initially suspected that it might have something to do with our company logo (the JPG stored in Axapta) so I reduced the file size by lowering the resolution and saving in PNG format. No effect. I then removed the logo altogether and it had no impact at all on file size.

If I print one of these PDF files using a PDF print driver such as CutePDF the file size is only approx 25Kb.

So I am certain that Axapta's internal PDF generator is massively inefficient, creating PDFs more than 15 times the size they should be. Our customers and vendors have complained about the file size and also that sometimes the PDF files we've sent are corrupted.

I'm really hoping that there is a patch that has addressed this. Can anyone help point me in the right direction?

Regards,

Peter.

 

*This post is locked for comments

I have the same question (0)
  • Rajdip Das Profile Picture
    3,333 on at
    Re: PDF files are too big

     

     Hi Peter

    I have two options to study regarding this matter. 1st run the report in screen mode, after completing run the report then save the report in pdf mode and check the size of pdf. If pdf size is equivalent of your existing report then this is natural. If not then you can apply 2nd option, write these code into init method of the report.

    public void init()
    {

    ;   

    super();

        /*

          YOUR CODES
     */ 

        element.PrintJobSettings().SetTarget(PrintMedium::File);
        element.PrintJobSettings().format(printFormat::PDF);
        element.PrintJobSettings().FileName("c:\\rajdip.pdf");

    }

    Try it, I this this procedure will solve your problem... :)

     

     

  • akuehn Profile Picture
    1,995 on at
    Re: PDF files are too big

    Hi Peter,

    had exactly the same problem some time ago.

    PDF file are very big:
    The reason for that are the embeded fonts of the generated pdf file.

    PDF file seems to by corrupted:
    Try to use a Acrobat Reader Version higher then 6. Acrobat Reader 7.0 worked for me.

    To fix these problems you should at first check if the pdf hotfixes for Ax 3.0 SP4 KR2 are installed.
    These must be installed seperatly (extra XPO's). They don't get installed when you "only" install the KR2 (running the setup exe's).

    If this doesn't solve the problem please contact for Partner or Microsoft to get a HotFix for that.
    As far as i remember a hotfix should be available for this problem in AX 3.0 SP4 KR2.

  • DBR Profile Picture
    30 on at
    RE: PDF files are too big

    Hello,

    I have the same problem with an Axapta V3.0 SP6...

    Have you find a solution?

    Thanks

  • Suggested answer
    DBR Profile Picture
    30 on at
    RE: PDF files are too big

    Hi,

    I found the solution (for axapta 3.0)...

    despite of the installation of the extra xpo, the probleme continue.

    With the help of my integrator , we found the code property:

    Classes\PDFViewer\classDeclaration

    change the constant #define.EMBEDFONTS(1) to #define.EMBEDFONTS(0)

    this cause to decharge the font to the document...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans