Recognize QR Code in pdf

Last post 02-08-2012, 11:15 AM by babar.raza. 4 replies.
Sort Posts: Previous Next
  •  10-12-2011, 9:16 AM 335744

    lock [lo] Recognize QR Code in pdf

    I'm using aspose.bar​code to create and recognize qr code

    I have some questions.

    1)
    -I follow this tutorial http://www.aspose.com/documentation/.net-components/aspose.barcode-for-.net/how-to-print-barcodes-in-net-windows-forms.html
    -I print with "Pdf Creator" a pdf (http://sourceforge.net/projects/pdfcreator/)
    -I try to read generated pdf with this method: http://www.aspose.com/documentation/.net-components/aspose.barcode-for-.net/recognize-barcode-from-pdf-document.html
    PROBLEM: I create barcode but when I try to reognize it doesn't find any barcode in pdf
    Attach my generated pdf
    why?

    2)I see on this site http://beqrious.com/generator that I can specifify which type of informatio​n is barcode in. How can I achieve this with aspose.bar​code?

    3) How Can I fix size of barcode image?
    For example attached barcode is very small.
    I set x-yDimension (example 1.5f) and image is bigger.
    But...When there are a lot of informations(800characters), Is it right that image is bigger than x-y dimension?

    thanks!

     
  •  10-12-2011, 1:18 PM 335745 in reply to 335744

    lock [lo] Re: Recognize QR Code in pdf

    Hi,

    Thank you for inquiry.

    1) There seems to be some issue with the barcode reader, I have logged this bug in our system (ID: 31281). We will look into it in more detail and will update you when there is some feedback or it gets fixed.

    2) The above mentioned website seem to have handled the type of information themselves. In our component, it just takes a string as codetext and the programmer needs to handle the type himself.

    3) To fix the size, please set the AutoSize to false and specify the GraphicsUnit, ImageHeight and Width properties. You may leave the x and y dimension values as default, but if you need to modify, please read this article for details.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  10-13-2011, 2:04 AM 335746 in reply to 335744

    Re: Recognize QR Code in pdf

    Thanks for your replies!

    1) I'll wait for a solution. Is there any page to log bug solving process?

    2) Ok. I had  a doubt that there was to set some property.

    3) ok I'll try

    thanks
     
  •  10-13-2011, 3:23 AM 335747 in reply to 335744

    lock [lo] Re: Recognize QR Code in pdf

    Hi,

    Our bug tracking system is internal currently. We just share the ID of the bug in forums. When the bug is fixed, we post notifications like "he issues you have found earlier (filed as xxxxx) have been fixed in this update (URL of new release)".

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  02-08-2012, 11:15 AM 360132 in reply to 335747

    Re: Recognize QR Code in pdf .NET

    Attachment: Present (inaccessible)
    Hi Matteo,

    Please accept our apologies for the delayed response on this.

    I regret to inform you that the ticket logged earlier as BARCODENET-31281 is not a bug of Aspose.BarCode for .NET component. 

    In our Demos and Documentation, we have used the Aspose.Pdf.Facades.PdfExtractor (former: Aspose.Pdf.Kit.PdfExtractor) to extract images from PDF files. Unfortunately, PdfExtractor is not able to find images on your provided document, so the image with barcode is never passed to the BarCodeReader in below linked technical article. 

    If you like, you can take this issue to the Aspose.Pdf forum for further assistance or you can switch to Aspose.Pdf for .NET component for your PDF creation. Please find below a source code example to generate barcode and add it to a new PDF document using the Aspose.Pdf.Generator and Aspose.BarCode. The resultant document [attached] is easily scan-able with Aspose.barCode for .NET component. 

    C#
    //Create an instance of MemoryStream to hold image data       var stream = new System.IO.MemoryStream();
          //Create an instance of BarCodeBuilder and pass the CodeText and Symbology       var builder = new Aspose.BarCode.BarCodeBuilder("1234567890", Symbology.QR);
          //Save BarCodeBuilder image in MemoryStream object       builder.Save(stream, BarCodeImageFormat.Bmp);
          //Create an instance of Pdf       var pdf = new Aspose.Pdf.Generator.Pdf();
          //Create a section in the Pdf object       var sec = pdf.Sections.Add();

          //Create an image object in the section       var image = new Aspose.Pdf.Generator.Image(sec);

          //Add image object into the Paragraphs collection of the section       sec.Paragraphs.Add(image);

          //Set the path of image file       image.ImageInfo.ImageStream = stream;
          //Set the type of image using ImageFileType enumeration       image.ImageInfo.ImageFileType = Aspose.Pdf.Generator.ImageFileType.Bmp;
          //Set image title       image.ImageInfo.Title = "BMP image";
          //Save the Pdf       pdf.Save("c:\\temp\\test.pdf");

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
View as RSS news feed in XML