Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Corrupted pdf generated with specific Rectangle

$
0
0
When I try to create PDF, that contains Rectangle with bottom=0.0000610351563f output PDF become corrupted. Here is simplified example:
        static void Main(string[] args)
        {
            var pdf = new Pdf();

            var section = new Section();
            var canvas = new Graph(section);
            section.Paragraphs.Add(canvas);
            var border = new Rectangle(canvas, 0, 0.0000610351563f, 100, 100);
            canvas.Shapes.Add(border);
            pdf.Sections.Add(section);

            pdf.Save(@"C:\Temp\1.pdf");
        }

Viewing all articles
Browse latest Browse all 3131

Trending Articles