Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Problem of formatting converting to pdf

Last post 08-05-2009, 8:42 AM by aspose.notifier. 8 replies.
Sort Posts: Previous Next
  •  07-02-2009, 6:37 AM 186583

    Problem of formatting converting to pdf .NET

    Attachment: Present (inaccessible)
    Hi,

    We are evaluating Aspose.Words for .Net and we like the product but we have problems in the conversion to PDF.
    If you see the attached file, the upper version (generated word document from dot template) the columns inside red square appears with the correct width and the right line is right.
    Otherwise, the lower version is the capture of the generated pdf file and as you can see, the columns width are changed and we lose the right black line of the table.

    Is this an issue or can we do anything to avoid this?

    We want to buy the product because it can solve our problems but we need the output document have exactly the same appearance.

    I hope you can help us.

    Thanks in advance


     
  •  07-02-2009, 9:24 AM 186603 in reply to 186583

    Re: Problem of formatting converting to pdf

    Hi

     

    Thanks for your inquiry. But it is difficult to say what the problem is without your document. Could you please attach sample document here for testing? I will check the issue on my side and provide you more information.

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  07-03-2009, 2:04 AM 186705 in reply to 186603

    Re: Problem of formatting converting to pdf .NET

    Attachment: Present (inaccessible)
    Hi,

    I have attached with this post a zip file containing three files:
    -The original DOT file
    -The generated DOC file with only change of replacing bookmarks
    -The generated PDF file from DOC.

    Here is my code to do this
    ------------------------------------------------------
                Aspose.Words.License license = new Aspose.Words.License();
                license.SetLicense(@"C:\Archivos de programa\Aspose\Aspose.Words\Bin\net2.0\Aspose.Words.lic");

                Aspose.Words.Document aspword = new Aspose.Words.Document("C:\temp\mytemplate.dot");
                Aspose.Words.BookmarkCollection marcadores = aspword.Range.Bookmarks;

    //I have a custom collection of bookmarks and its values://'BancaMarch.Xml.reimpresion_documentoMarcadores'

                foreach (BancaMarch.Xml.reimpresion_documentoMarcadores marcadorvalor in datosPeticion.marcadores)
                {
                    if (!String.IsNullOrEmpty(marcadorvalor.marcador.Value) && !String.IsNullOrEmpty(marcadorvalor.marcador.name))
                        marcadores[marcadorvalor.marcador.name].Text = marcadorvalor.marcador.Value;
                }

                System.IO.MemoryStream stream = new System.IO.MemoryStream();
                aspword.SaveToPdf(0, aspword.PageCount, @"C:\temp\output.pdf", null);
                aspword.Save(@"C:\temp\outputdoc.doc");


    PD: As a second issue, we have detected that generated DOC file crashes Microsoft Word in some machines with Office XP SP2 and SP3.

    I hope you can help.

    Thanks in advance
     
  •  07-03-2009, 2:47 AM 186718 in reply to 186705

    Re: Problem of formatting converting to pdf

    Hi

     

    Thank you for additional information. I managed to reproduce the problem on my side and linked your request to the appropriate issue. You will be notified as soon as it is fixed.

    As a workaround, I may suggest you refactoring of your template. If you need I can help you change your template. If so please provide me your e-mail and I will send the refactored template to you.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  07-03-2009, 5:23 AM 186746 in reply to 186718

    Re: Problem of formatting converting to pdf .NET

    Hi,

    At this moment we prefer to know what's the problem with the template. So, if you can refactor it to make the conversion process run fine:
    1-Please send me a copy to 8987@bancamarch.es
    2-Explain me what steps you have done to make it work.

    I'm asking for the process of refactoring because we have about 60 templates and we have to evaluate the work to change all.

    Thanks for your attention.


     
  •  07-03-2009, 6:21 AM 186759 in reply to 186746

    Re: Problem of formatting converting to pdf

    Hi

     

    I sent refactored template and output PDF. I just avoided using merged cells where it is not necessary and changed width of columns in your table a bit.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  07-03-2009, 7:54 AM 186784 in reply to 186759

    Re: Problem of formatting converting to pdf .NET

    Hi,

    Your output pdf is fine! So now we now that there is a way to do correctly.

    The problem is that i'm trying to modify the dot by myself but I'm not getting good results.
    I suppose that you are doing this kind of work every day and you go directly to the problem.
    I suppose too that this problem is a recognized issue with the product and It has to exist a document explaining it and how to avoid it.

    I'm asking you this because we need to evaluate as much accurate possible the time that we need to fix this problems in our templates and not lose our time in try-error iterations to get the correct result for all templates.

    And finally, if this is an issue with tables, do you plan to fix in a short time?

    PD: I have been looking for other products similart to Aspose.Words and have tried other two but now we are sure that we want to do with Aspose.Word. I we cannot resolve completely this issues, we'll have to change technologies used (first of all removing all microsoft word documents).

    Thanks in advance
     
  •  07-03-2009, 8:43 AM 186799 in reply to 186784

    Re: Problem of formatting converting to pdf

    Hi

     

    Thanks for your request. If you need help with refactoring your templates, I can help you to do that. Please, send the problematic template to my e-mail, I will take a look on them and try to help you.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-05-2009, 8:42 AM 192065 in reply to 186583

    Re: Problem of formatting converting to pdf

    The issues you have found earlier (filed as 7570) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
    (7)
     
View as RSS news feed in XML