Skip to content

Fix EPS file creation #693

@Shane32

Description

@Shane32

@Shane32 Oops I did not notice the eps support. However when I tried to open the eps generated by PostscriptQRCode eps = true it failed to open in Illustrator CS3. It maybe legacy but eps version 3.0 should open in all CS versions and for a QRCode only a minimal set of features is needed. But I might have made a mistake?

 using (QRCodeData data = QRCodeGenerator.GenerateQrCode(link.Uri, QRCodeGenerator.ECCLevel.Q))
 {
     using (PostscriptQRCode eps = new(data))
     {
         string qrCode = eps.GetGraphic(10, true);
         //save your graphic
         using (FileStream fs = File.OpenWrite(@"PATH\qrcode.eps"))
         {
             using (StreamWriter sw = new(fs)) 
             {
                 sw.Write(qrCode);
             }
         }
     }
 }

GS1: The documentation is quite extensive and it took us writing loads of code to rectify and simplify. If you would want any pointers I'll be glad to help.

Thank you for your answer,
Kind regards Martijn

Originally posted by @mvanderelsen in #488

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions