Sign In  Sign Up Live-Chat

Word document fields wrapping when converted to PDF

Last post 09-07-2007, 8:15 PM by forever. 25 replies.
Page 1 of 2 (26 items)   1 2 Next >
Sort Posts: Previous Next
  •  07-23-2007, 7:28 PM 85872

    Word document fields wrapping when converted to PDF

    Fields on single lines in Word documents are wrapping to two lines when converted to PDF using COM Helper class.

    I have examples of this but can't figure out how to attach these files.

    My conversion code is as follows:

    <%
    On Error Resume Next

    Response.Buffer = False
    'Response.Buffer = True
    Server.ScriptTimeOut = 1200

    '// USE THE SOFTARTISANS FILEUP OBJECT TO ACCESS THE UPLOADED FILE.
    Dim upld
    Set upld = Server.CreateObject("SoftArtisans.FileUp")

    '// COLLECT THE FILE NAME FROM THE DOWNLOAD DOCUMENT SCREEN.
    sDocFullFileName = upld.Form("DocFullFileName")

    Response.write "Converting '" & sDocFullFileName & "' to PDF ... "

    '// CONVERT THE MERGE DOCUMENT INTO (strPdfDocSetPath & LoanNumber & ".pdf")

    strTmpPdfFile = "C:\test\AsposeTest.pdf"
    strTmpXmlFile = "C:\test\AsposeTest.xml"

    '// CREATE THE ASPOSE.WORDS COMHELPER ASP WRAPPER OBJECT TO EDIT WORD DOCUMENTS
    Dim comHelper
    Dim currDoc

    set comHelper = Server.CreateObject("Aspose.Words.ComHelper")
    licenseFile = "C:\Program Files\Aspose\Aspose.Words\License\Aspose.Words.lic"
    Set License = Server.CreateObject("Aspose.Words.License")
    License.SetLicense(licenseFile)
    If Err.number <> 0 Then
      Response.write "<br><h1>***** ASPOSE OBJECT COULD NOT BE CREATED *****</h1>"
      Response.end
    End If

    Set currDoc = comHelper.Open( sDocFullFileName )
    If Err.number <> 0 Then
      Response.write "<br><h1>***** ERROR OPENING DOCUMENT *****</h1><br>" &  Err.description & "<br>"
      Resposse.end
    End If
    currDoc.Save_4 strTmpXmlFile, 3

    Dim oPdf
    Set oPdf = CreateObject("Aspose.Pdf.Pdf")
    oPdf.BindXML_2 strTmpXmlFile, Nothing
    oPdf.IsImagesInXmlDeleteNeeded = True
    oPdf.Save(strTmpPdfFile)
    %>

     
  •  07-23-2007, 7:58 PM 85876 in reply to 85872

    Re: Word document fields wrapping when converted to PDF

    Hi,

    Thank you for considering Aspose.

    Can you please provide the Word document and let us check it?


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-24-2007, 10:24 AM 86202 in reply to 85876

    Re: Word document fields wrapping when converted to PDF

    I've not been able to attach files my posts, but I sent a reply to the email I received and attached a test document to the reply.

    Thank you.

     
  •  07-24-2007, 1:43 PM 86243 in reply to 86202

    Re: Word document fields wrapping when converted to PDF

    Hi,

    I think we haven't received your documents yet. Could you please resend us at tommy.wang@aspose.com and adeel.ahmad@aspose.com

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  07-24-2007, 9:42 PM 86282 in reply to 86243

    Re: Word document fields wrapping when converted to PDF

    1. On the first page:  A box formatted around the paragraphs creeps up into the preceding paragraph causing the top line of the box to run through the middle of the previous line of text.
    This is a bug and I have logged it.
    2. On the second page(Section 2, page 1):  Page numbers in footers surrounded by parentheses with no spaces between the page number and the parentheses are converted from: “(1)” to “(1 )”.
    This is a known issue but we can't resolve it in short time.
    3. On the third and forth pages (Section 3, page 1 & 2):  When square brackets [ ] are placed around a space of a different font size Aspose PDF converts the last bracket to that same font size of the previous space, which appears “[ ]”, although the brackets are centered vertically.  The brackets are the same font size in the Word document.  This also happens with bold characters.  If the character in the brackets is bold, and the brackets are not the last bracket is changed to bold.  Page four has examples of both.
    This is a bug and I have logged it.
    4. On the fifth page (Section 3, page 3):  An extra line appears between the cell containing the “Principal Limit” amount and the underlined cell beneath it, as does the does the following cell amounts:
    1)      Outstanding Balance
    2)      Total Deductions from Principle Limit
    3)      Principle Limit for Line of Credit
    4)      Outstanding Balance on Line of Credit from previous payments
    5)      Funds Available to Borrower in Line of Credit (Lines 14 – 13)
    6)      Net Principle Limit Available for Monthly Payments (Lines 14 – 13).
    5. On page six (Section 3, page 4):  Values given for the “Loan Number”, “Date Notice Given”, and “Property Address” are all wrapping over to force another line.  The Word document shows plenty of space for those values to stay on the same line as the labels.
    6. Page seven (Section 3, page 5 & 6):  The first character from page 6 is missing.  Whenever a paragraph is spread to the next page the first character of the second page is lost.  In this case the “r” from “reasonable” is missing.

    4,5 and 6: I have not found this error. Please make sure you are using the latest version of Aspose.Words and Aspose.Pdf. I will send the resulting PDF via email.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-25-2007, 12:13 PM 87976 in reply to 86282

    Re: Word document fields wrapping when converted to PDF

    After reinstalling the latest Words and PDF downloads, testing, and checking my list of bugs I found some of the issues are the same, some have been fixed - thank you - but my last issue has developed a greater problem than before.  See below:

    Format Issues with Aspose PDF

    1. On the first page:  A box formatted around the paragraphs creeps up into the preceding paragraph causing the top line of the box to run through the middle of the previous line of text.
    2. On the second page(Section 2, page 1):  Page numbers in footers surrounded by parentheses with no spaces between the page number and the parentheses are converted from: “(1)” to “(1 )”.  *** FIXED ***
    3. On the third and forth pages (Section 3, page 1 & 2):  When square brackets [ ] are placed around a space of a different font size Aspose PDF converts the last bracket to that same font size of the previous space, which appears “[ ]”, although the brackets are centered vertically.  The brackets are the same font size in the Word document.  This also happens with bold characters.  If the character in the brackets is bold, and the brackets are not the last bracket is changed to bold.  Page four has examples of both.
    4. On the fifth page (Section 3, page 3):  An extra line appears between the cell containing the “Principal Limit” amount and the underlined cell beneath it, as does the does the following cell amounts:  *** FIXED ***

    1)      Outstanding Balance

    2)      Total Deductions from Principle Limit

    3)      Principle Limit for Line of Credit

    4)      Outstanding Balance on Line of Credit from previous payments

    5)      Funds Available to Borrower in Line of Credit (Lines 14 – 13)

    6)      Net Principle Limit Available for Monthly Payments (Lines 14 – 13).

    1. On page six (Section 3, page 4):  Values given for the “Loan Number”, “Date Notice Given”, and “Property Address” are all wrapping over to force another line.  The Word document shows plenty of space for those values to stay on the same line as the labels. *** FIXED ***
    2. Page seven (Section 3, page 5 & 6):  The first character from page 6 is missing.  Whenever a paragraph is spread to the next page the first character of the second page is lost.  In this case the “r” from “reasonable” is missing.  Page 6 is completely missing - just a blank follows page 5 in section 3.  This was also a new issue I discovered in the output.pdf returned to me from Tommy Wang.

     

     

     

     
  •  07-25-2007, 8:40 PM 88020 in reply to 87976

    Re: Word document fields wrapping when converted to PDF

    Hi,

    I have logged the text missing problem. I hope we can fix all the logged issues early next week.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-27-2007, 10:25 AM 88279 in reply to 88020

    Re: Word document fields wrapping when converted to PDF

    Thank you.

    I've recorded the Date Added and Download # from the latest releases of Aspose.Words and Aspose.Pdf.  Other than that how will I know when the next releases are posted?

     
  •  07-27-2007, 11:58 AM 88296 in reply to 88279

    Re: Word document fields wrapping when converted to PDF

    Hi,

    Whenever the bug are fixed and the Hotfix is released you will be notified here on the forum.

    Thanks.

     
  •  07-30-2007, 2:39 AM 88432 in reply to 88296

    Re: Word document fields wrapping when converted to PDF

    The bugs has been fixed. Please try hotfix 3.5.6.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-10-2007, 6:02 PM 90316 in reply to 88432

    Re: Word document fields wrapping when converted to PDF

    Thanks for the update.

    I just downloaded, installed, and registered both Aspose.Pdf and Aspose.Words.  My tests show that Aspose.Pdf is still inserting a space between page numbers and right parentheses converting “(1)” to “(1 )”, and when square brakets [ ] are placed around a character of a different font size Aspose.Pdf converts the last bracket to the same font size of the previous character.

    These issue are obviously not show stoppers, but they're still not right.

    Thanks again for all your help.

     
  •  08-10-2007, 8:38 PM 90322 in reply to 90316

    Re: Word document fields wrapping when converted to PDF

    Hi,

    We will investigate these issues and try to fix them in the future version.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-14-2007, 6:25 PM 90748 in reply to 90322

    Re: Word document fields wrapping when converted to PDF

    Attachment: Present (inaccessible)

    My final investigation of issues converting Word documents to PDF using Aspose.Pdf is documented in the attached Word document, which provides examples and notes for each issue.  Some of these issues I have before mentioned, but this list contains a few more new issues.  I hope this helps your development team create a better product that everyone can use more confidently.

     

     
  •  08-14-2007, 7:08 PM 90749 in reply to 90748

    Re: Word document fields wrapping when converted to PDF

    Hi,

    Thank you for providing the detailed info. We will investigate all the issues and give you a ETA soon.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-16-2007, 1:10 PM 91036 in reply to 90748

    Re: Word document fields wrapping when converted to PDF

    Hi,

    Thank you for considering Aspose Pdf. We are working on this issue now . We will try to resolve all these problems in about two weeks.

    Best regards.

    Hans






    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
Page 1 of 2 (26 items)   1 2 Next >
View as RSS news feed in XML