Hi,
Hi Jim,
Hi,
Hi there,
Thanks for your feedback, I’m setting section margins as following. We will update you via this forum thread as soon as its resolved.
//Instantiate a Pdf object by calling its empty constructor
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
//Create a section in the Pdf object
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
//Create an image object in the section
Aspose.Pdf.Generator.Image image1 = new Aspose.Pdf.Generator.Image(sec1);
//Add image object into the Paragraphs collection of the section
sec1.Paragraphs.Add(image1);
// set the page margin
sec1.PageInfo.Margin.Left = 0;
sec1.PageInfo.Margin.Right = 0;
//sec1.PageInfo.Margin.Top = 0;
//sec1.PageInfo.Margin.Bottom = 0;
//Set the path of image file
image1.ImageInfo.File = myDir + “start.jpg”;
//Set the type of image using ImageFileType enumeration
image1.ImageInfo.ImageFileType = Aspose.Pdf.Generator.ImageFileType.Jpeg;
//scale image according to page width/height
image1.ImageInfo.FixWidth = sec1.PageInfo.PageWidth;
image1.ImageInfo.FixHeight= sec1.PageInfo.PageHeight;
//Save the Pdf
pdf1.Save(myDir + “outpdfimg.pdf”);
Please feel free to contact us for any further assistance.
Best Regards,
Any news on this defect? This is really putting a cramp on our next release. I’d love any work-around ideas as well.
Hi James,
Hi,
I hope this message finds you well. We are in a bit of a spot with this issue. Here is where we are at:
Our core problem is that this is the last issue that we need to resolve before a major release. We have spent nearly 80 hours trying to determine an aspose-based work-around for the blurry image conversions, with no luck. We also noticed that images into pdfs are blurry in your demos as well:
http://www.aspose.com/demos/.net-components/aspose.pdf/vb.net/FO/Images.aspx
On a side note, it seems bizarre that Aspose products do some many things so well, but that this basic functionality is so defective. Perplexing and expensive on our end.
With that said, we are getting pretty desperate for a solution. Some further questions:
-
Did this work with a previous version of Aspose? If so, which version. We will happily roll back if we have to.
-
Can we pay you to fix this issue? At a bare minimum, if we renew our licensing package can expedite a solution for us?
-
Can you recommend a competing product that you respect that you think may do a good job? We really hate to switch, because we’ve used Aspose for years now, but we feel we are running out of options. For example, one of my coders recommended exploring this option: vb.net - Converting multiple Images to pdf using pdfsharp - Stack Overflow
Please let me know if there is anything else we can do to help this problem along.
Sincerely,
Jim Ray
CTO/Co-Founder
FASTPORT
Hi Jim,
Thanks for your feedback.
JimFASTPorter:
Our core problem is that this is the last issue that we need to resolve before a major release. We have spent nearly 80 hours trying to determine an aspose-based work-around for the blurry image conversions, with no luck. We also noticed that images into pdfs are blurry in your demos as well:
[http://www.aspose.com/demos/.net-components/aspose.pdf/vb.net/FO/Images.aspx ](http://www.aspose.com/demos/.net-components/aspose.pdf/vb.net/FO/Images.aspx)
On a side note, it seems bizarre that Aspose products do some many things so well, but that this basic functionality is so defective. Perplexing and expensive on our end.
Our development team has investigated the issue and found that original JPEG-image document is of low enough quality. Sure, quality of image also can degrade a bit during scaling, it’s a natural thing. But original quality is bad enough, and if that low-quality image is magnified, that bad quality becomes more perceptive. And it seems that it’s main source of problems. Can you please scan and (or) convert to JPEG with better quality(more DPI) or take source image-file in original format of scanning and send us that better version? So we investigate it further and provide you information accordingly.
JimFASTPorter:
- Did this work with a previous version of Aspose? If so, which version. We will happily roll back if we have to.
We recommend to use latest version of Aspose.Pdf API, as we maintain a single code base and all fixes and features are included in latest version. So using some older version you can get into some other issues.
JimFASTPorter:
- Can we pay you to fix this issue? At a bare minimum, if we renew our licensing package can expedite a solution for us?
Yes purchase of enhanced support definitely raise your issue priority but resolution is subject to the complexity and priority of issue. Aspose offers three different types of enhanced support, please check following links for the details/prices and enhanced support FAQs.
We are sorry for the inconvenience caused.
Best Regards,
hey yea it wont work for me either… im having real trouble finding something that will convert my jpg to pdf at all…
Hi Geoffrey,