Re: problems with pictures in produced pdf

Is it possible to keep the vectors in the PDF in the latest version of Aspose.Report
Regards

Dear

				<span id="ctl00_bcr_up___TextboxFirstName">Bart,<br><br></span>If I understand correctly, you post is related to Aspose.Pdf.Kit not to Aspose.Report, because Aspose.Report doesn't contain any Pdf documents related functionallity. <br><br>So I'm moving thread to Aspose.Pdf.Kit forum.<br><br>Thanks.<br>

Hi Bart,

Please share a little more details regarding your issue. How did you create the PDF file in the first place? What are you trying to do with the file? Which component are you using for that matter? Also, if you can share the sample PDF file and the code snippet that will be helpful in diagnosing the problem.

We’re sorry for the inconvenience.
Regards,

Hello,

I Create a chart and save it as EMF (Using Aspose.Report)


Chart c = new Chart();

c.Titles.Add(new Title());
c.Titles[0].Text = “Bar, Zero Start”;
c.Width = 800;
c.Height = 600;
c.ChartArea.AxisX.IsMajorGridVisible = false;
c.ChartArea.AxisY.IsMajorGridVisible = false;
System.Drawing.Color color_Lieg = System.Drawing.Color.FromArgb(204, 204, 255);
c.BackColor = color_Lieg;

c.ChartArea.AxisY.IsAutoCalc = false;
c.ChartArea.AxisY.Interval = 20;
c.ChartArea.AxisY.Minimum = 0;
c.SmoothingMode = SmoothingMode.HighQuality;

Series s0 = new Series();
s0.ChartType = ChartType.Bar;
s0.Name = “Series 0”;
s0.DefaultDataPoint.IsLabelVisible = true;
s0.DefaultDataPoint.LabelPosition = LabelPositionType.Center;
s0.DefaultDataPoint.LabelAngle = -90;
s0.DataPoints.Add(new DataPoint(10, 25));
s0.DataPoints.Add(new DataPoint(20, 50));
s0.DataPoints.Add(new DataPoint(30, 75));
c.SeriesCollection.Add(s0);

Series s1 = new Series();
s1.ChartType = ChartType.Bar;
s1.Name = “Series 1”;
s1.DataPoints.Add(new DataPoint(10, 50));
s1.DataPoints.Add(new DataPoint(20, 75));
s1.DataPoints.Add(new DataPoint(30, 25));
c.SeriesCollection.Add(s1);
c.Save(Server.MapPath(“Charts/Chart1.emf”), ImageFormat.Emf);


Then I place it in a PDF (Using Aspose.PDF)

Pdf pdf1 = new Pdf();
pdf1.PageSetup.PageHeight = Aspose.Pdf.PageSize.A4Width;
pdf1.PageSetup.PageWidth = Aspose.Pdf.PageSize.A4Height;

Section sec1 = pdf1.Sections.Add();
Aspose.Pdf.Image image2 = new Aspose.Pdf.Image(sec1);
image2.ImageInfo.File = Server.MapPath(“Charts/Chart1.emf”);
image2.ImageInfo.ImageFileType = ImageFileType.Emf;
sec1.Paragraphs.Add(image2);

The PDF shows a bitmap image and not a vector image
Regards

Hello Bart,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I'm sorry to inform you that currently Vector images are not supported, and when images are added to PDF, they are first converted into Bitmap format, which is the current behavior that you've observed.

Fore the sake of correction, we've already logged this requirement as PDFNET-4592 under New Features list inside our issue tracking system. But, I'm afraid we might not be able to share the solution in short time.

We apologize for your inconvenience. Your patience and comprehension is significantly cherished in this regard.

OK .
Regards