Blurry QR Code on Mac/iOS

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Blurry QR Code on Mac/iOS

DynamicPDF CoreSuite for .NET (v8) Forum

 Dec 20 2016 3:33 PM
Hello,

I have a problem of bar codes and QR codes rendering find in Windows but shows blurry in the default PDF viewer on iOS and Mac. I understand that these codes are rendered as a vector but they still appear blurry.

Also, they don't appear blurry if using other products to generate the PDF.

I have a sample PDF that I can send.
 Dec 20 2016 3:47 PM
Rendering fine*
 Dec 20 2016 5:54 PM
Below is some sample code on how we are generating the barcode/qr code item. We also tried creating the barcode image manually and then adding it as an image element to the page which didnt work either. If there is alternate way to work around this issue, please advise.

DynamicPDF.Document objPdfDocument = New DynamicPDF.Document
Dim objPdfPage As New DynamicPDF.Page(objPdfPageSize, objPdfPageOrientation, sngPageMargins)
PdfPage.Elements.Add(objPdfImage)

...

barcode = New DynamicPDF.PageElements.BarCoding.QrCode(barcodeValue, barcodeXPos, barcodeYPos, barcodeHeight)
PdfPage.Elements.Add(barcode)

...

barcodeElement = New DynamicPDF.PageElements.BarCoding.Code39(barcodeValue, barcodeXPos, barcodeYPos, barcodeHeight, barcodeWidthRatio)
barcodeElement.Angle = 270
barcode = barcodeElement
PdfPage.Elements.Add(barcode)

...

Dim objPdfImage As New DynamicPDF.PageElements.Image(myBitmap, sngImageXPos, sngImageYPos, 1)

...

PdfPage.Elements.Add(objPdfImage)

...

objPdfDocument.Pages.Add(objPdfPage)


Happy to provide the generated PDF if this will be of any help.

Printing a page (containing barcode) as PDF from Chrome doesn’t have blurry issues when viewed in Mac. We tried another third party component that can convert HTML to PDF, there is an online demo provided at the URL below. If you paste any SVG snippet to create barcodes and then convert that HTML to PDF, the document created also rendering fine without any blury issues.
winnovative-software.com/demo/default.aspx


Hope the above provide enough info to look into this further. If you need any further information please let us know. Will really appreciate your input on this one.
 Dec 21 2016 9:37 AM
Posted by a ceTe Software moderator
Hello,

Could you please email support@cete.com refering to this forum post and provide the following information so we can look into this issue further?

1. Version and build number of the DynamicPDF dll used. (This information can be obtained in the dll reference properties (Version and Description fields) in Visual Studio).

2. A copy of the PDF generated using DynamicPDF with QR Code.

3. Copies of PDFs generated using other products that you have used for comparision.

4. Version of iOS and Mac where you are seeing this blurry barcode.

5. Version of default PDF Viewer of iOS and Mac.

6. Please open the PDF generated using DynmaicPDF in Adobe Reader on iOS and Mac and let us know how the barcode is displayed. It would be nice if you can send screenshots as well.

Thanks,
ceTe Software Support Team.
 Dec 22 2016 5:30 PM
Sent.
 Jan 04 2017 4:56 PM
Posted by a ceTe Software moderator
Hello,

Our development team looked into this issue and determine that it not an issue with our product and that our product is adding the barcodes and generating the PDF as per the PDF specification. There are several valid ways to add the barcodes to a PDF and different products choose to add barcodes using different techniques. It is possible that other products you have tested with are adding barcodes to the PDF in some other way and iOS/Mac do not have issues rendering such barcodes.

Our product adds barcodes as 1-bit images which is one of the efficient ways available to add barcode images to a PDF. However, it appears that the PDF viewer of iOS/Mac is unable to render such 1-bit barcode images correctly. Although our barcode images do not have any interpolation data, it appears that iOS/Mac viewer is trying to interpolate the barcode images causing them to be blurry.

Other PDF viewers (Adobe Reader DC, Foxit Reader etc.) we tested with are rendering our PDF barcodes clearly.
 
At this point out product can only add the barcodes as 1-bit images and it is not possible to add barcodes in any another way. We may consider providing additional ways to add barcodes in a future version.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 2:05 AM.