'''' This code is part of Document Solutions for PDF .NET demos.'' Copyright (c) MESCIUS inc. All rights reserved.''ImportsSystemImportsSystem.IOImportsSystem.DrawingImportsSystem.LinqImportsSystem.Collections.GenericImportsGrapeCity.Documents.PdfImportsGrapeCity.Documents.Svg '' This sample shows how to render an SVGZ (compressed SVG) image.PublicClassRenderSvgzFunctionCreatePDF(ByVal stream AsStream) AsIntegerDim svgPath = Path.Combine("Resources", "SvgMisc", "Smiling-Girl.svgz")Using svg = GcSvgDocument.FromSvgz(File.ReadAllBytes(svgPath))'' Render the image and a border around it:Dim doc = NewGcPdfDocument()Dim g = doc.NewPage().GraphicsDim pt = NewPointF(72, 72) g.DrawSvg(svg, pt)Dim sz = svg.GetIntrinsicSize(SvgLengthUnits.Points) g.DrawRectangle(NewRectangleF(pt, sz), Color.MediumPurple) '' Done: doc.Save(stream)Return doc.Pages.CountEndUsingEndFunctionEndClass