Highlight Annotations rendering oddly when converting Pdf Document to images

Last post 03-08-2012, 3:47 PM by nausherwan.aslam. 19 replies.
Page 1 of 2 (20 items)   1 2 Next >
Sort Posts: Previous Next
  •  10-31-2011, 10:45 AM 339142

    Highlight Annotations rendering oddly when converting Pdf Document to images .NET

    Hi!

    I'm trying to render a PDF document to PNGs. When the PDF has any kind of highlight annotation, the text behind it is jagged and aliased. Is there anything I can do to correct this?

    Thanks!

    -- Geoff
     
  •  10-31-2011, 11:00 AM 339150 in reply to 339142

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Geoff,

    Thanks for using our products.

    You may check the following documentation links for details and code snippets as per your requirement.

    Convert particular PDF page to PNG Image

    Convert all PDF pages to PNG Images

    Working with Annotations

    Please do let us know if you need any further assistance.

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  10-31-2011, 12:44 PM 339178 in reply to 339150

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Attachment: Present (inaccessible)
    Rashid,

    Thanks - I am actually working with code identical to that in the first example, but when there are highlights in the PDF, they end up looking jagged and aliased.

    I've attached a section of the PNG that it renders, and here is a link to the original file:

    https://www.adobe.com/support/products/pdfs/adobe_products_and_windows_vista.pdf

    The highlights were made in Acrobat.
     
  •  11-01-2011, 3:10 AM 339298 in reply to 339178

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Geoff,

    Thanks for your request, highlighted text in the PDF Document will not be jagged after conversion to PNG by using the below code.

    Document pdfDocument = new Document("adobe.pdf");

    using (FileStream imageStream = new FileStream("image.png", FileMode.Create))
    {
       //create PNG device with specified attributes

       //Width, Height, Resolution, Quality

       //Quality [0-100], 100 is Maximum

       //create Resolution object

       Resolution resolution = new Resolution(700);

       PngDevice pngDevice = new PngDevice(resolution);

       //convert a particular page and save the image to stream

       pngDevice.Process(pdfDocument.Pages[1], imageStream);

       //close stream

       imageStream.Close();
    }

    Please do let us know if you need any further assistance.

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  11-08-2011, 1:17 PM 340866 in reply to 339298

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Attachment: Present (inaccessible)
    Rashid,

    We are still having many problems with our pdf conversions.  We went ahead and created a few pdfs that contain all of the problems we are having.  I have attached the following with explanations below:

    • Attachment 1.pdf
      • This is a control pdf, it has no annotations.
    • Attachemtn 2.pdf
      1. The original pdf file that we made with all of the problems (2.pdf)
        1. HighlightAnnotation
        2. SquareAnnotation
        3. CircleAnnotation
        4. PopupAnnotation
        5. FreeTextAnnotation
      2. The png output from the conversion when using Aspose.Pdf.Document with this method: http://www.aspose.com/documentation/.net-components/aspose.pdf-for-.net/convert-particular-pdf-page-to-png-image.html (2-Pdf.Document.png)
        1. HighlightAnnotation - Very grainy and bold
        2. SquareAnnotation - Not rendered
        3. CircleAnnotation - Faded, moved up, and moved right
        4. PopupAnnotation - Faded, grainy, and bold
        5. FreeTextAnnotation - Faded, moved up, moved right, lost background color
      3. The png output from the conversion when using Aspose.Pdf.Kit.PdfConverter with this method: http://www.aspose.com/documentation/.net-components/aspose.pdf.kit-for-.net/aspose.pdf.kit.pdfconverter.doconvert_overload_1.html (1-PdfConverter.png)
        1. HighlightAnnotation - Opaque and covers text
        2. SquareAnnotation - Not rendered
        3. CircleAnnotation - Moved up and moved right
        4. PopupAnnotation - Opaque and covers text
        5. FreeTextAnnotation - Moved up and moved right
    • Attachment 3.pdf (3-Pdf.Document.png, 3-PdfConverter.png)
      • We made this file to show you how PdfConverter and Document misplaces Annotations.  This occurs mostly for shapes and freetext.  As you can see the the line of circles gets moved up, moved right, AND spread out (notice they overlap in the original).
    • Attachment 4.pdf (4-Pdf.Document.png, 4-PdfConverter.png)
      • Using Pdf.Document conversion, the image in this pdf is rendered as a black box.
    • Another problem we have seen is that random PopupAnnotations make their way back into the converted pngs after being deleted from the original pdf.
    Rashid, we really need to get each and EVERY one of these problems figured out as soon as we can.
    Please escalate this if need be.

    Thank you,

    Nathan Edwards
    Software Developer
    Innovative Data Solutions
     
  •  11-14-2011, 11:20 AM 342053 in reply to 340866

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images .NET

    ASPOSE Support,

    Do you have an update on this issue? It has been almost a week since Nathan posted the documentation on this issue and we have not heard anything yet. Any feedback on your progress would be greatly appreciated.

    Heath
     
  •  11-14-2011, 1:11 PM 342089 in reply to 342053

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Heath,

    Sorry for the delayed response.

    I have tested the scenario and I am able to notice the same problem. For the sake of correction, I have logged this problem as PDFNEWNET-31925 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction.

    We apologize for your inconvenience.

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  11-15-2011, 10:01 PM 342474 in reply to 342089

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Matt,

    Our development team is working on your issue. However, as per your email, I have requested an ETA from the development team regarding PDFNEWNET-31925 and as soon as I get a response from them, I will be happy to update you. Please spare some time with us.

    We apologize for your inconvenience.

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  11-21-2011, 7:44 AM 343670 in reply to 342474

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Rashid,

    Just wanted to find out if you got any sign of an ETA on this issue yet.

    Regards,
    Matt Lavoie
     
  •  11-21-2011, 10:47 PM 343833 in reply to 343670

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Matt,

    I am very sorry for the inconvenience caused due to this issue. However, I would like to share with you that we are discussing and investigating this issue at our end. Our development team is trying to provide the fix the earliest possible. Please spare us some time, so we could provide some estimate for the availability of the fix.

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  11-28-2011, 9:37 AM 345102 in reply to 343833

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Rashid,

    I do believe it has been a reasonable amount of time to expect an ETA, at the very least. Please let me know if any progress has been made on this issue. We need to get this bug resolved.

    Thank you,
    Matt
     
  •  11-28-2011, 10:18 AM 345115 in reply to 345102

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Matt,

    Thank you for being patient. I got an ETA regarding your issue from our development team and hopefully, we will provide you the fix for this issue by January 2012. Please be patient and spare us time to fix your issue.

    We apologize for your inconvenience.

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  01-06-2012, 3:06 PM 353596 in reply to 345115

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Rashid,

    I hope you had a happy new year. I know it is still early in January but I was just wanting to get a more exact date with which we could expect the solution for this issue.

    Thank you,
    Matt
     
  •  01-09-2012, 12:30 AM 353726 in reply to 353596

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

    Hi Matt,

    Thank you for being patient.

    The issue has been resolved by the development team and this issue will be a part of Aspose.Pdf for .NET v6.6 (to be released in current month) after following the complete testing and release cycle. Please be patient and we will notify you once the version is available for download.

    Sorry for the inconvenience,

    Thanks & Regards,


    Rashid Ali
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose – Your File Format Experts
     
  •  01-16-2012, 4:47 AM 355386 in reply to 339142

    Re: Highlight Annotations rendering oddly when converting Pdf Document to images

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


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
     
Page 1 of 2 (20 items)   1 2 Next >
View as RSS news feed in XML