How to position html elements in PDF
Add Image to Existing PDF File - inverted Co-ordinate issue.
a very serious problem
I met a serious problem. If use Image and HtmlFragment object to save pdf file. The pdf file open alert a error. and Image only show one.I use 10.7.0.0 version,and I test new version 11.0.0.0 have same problem.Below is the return code of the problem:
Document document = new Document();
var page = document.Pages.Add();
Image image = new Image();
image.ImageStream = new FileStream(@"c:\aa.jpg", FileMode.Open);
var html = new HtmlFragment("<div>aaa</div>");
page.Paragraphs.Add(html);
page.Paragraphs.Add(image);
page.Paragraphs.Add(html);
page.Paragraphs.Add(image);
using (var fileStream = new FileStream(@"C:\\TestPDF.pdf", FileMode.OpenOrCreate))
{
document.Save(fileStream);
document.FreeMemory();
document.Dispose();
}
This problem is more serious for our products.Please help me as soon as possible, thank you very much.
SVG to PDF: With Base 64 image
PDFNEWNET-35297
Hi,
I found this thread (
http://www.aspose.com/community/forums/permalink/467400/467400/showthread.aspx ) which mentions a feature request (PDFNEWNET-35297) for enabling printing defaults (e.g. duplex) in documents generated using Aspose.Pdf.
Can you tell me whether this has ever been implemented, and if so in which version of Aspose.Pdf?
Many thanks,
Peter
This e-mail together with any attachments is confidential and may be subject to legal privilege. If you are not the intended recipient, please:
(a) advise us immediately by return e-mail;
(b) do not forward, print, copy, disclose or use this e-mail and/or attachments in any way; and
(c) delete this e-mail and/or attachments, and destroy all paper copies of these which may have been printed.
OSPRI New Zealand is not responsible for any changes made to this e-mail and/or attachments after sending by OSPRI New Zealand.
This message was posted using Support2Forum.
Exporting pdf as png shows dark banding

PDF to Excel Not Working
JpegDevice.Process ignores resolution
Opening Html document throws Unable to cast object of type '.' to type '.'
Here is the sample code :
var inp = "page1.html";
var outp = "page1.pdf";
HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.PageInfo.Margin.Bottom = 10;
htmlLoadOptions.PageInfo.Margin.Top = 10;
htmlLoadOptions.PageInfo.Margin.Left = 10;
htmlLoadOptions.PageInfo.Margin.Right = 10;
htmlLoadOptions.PageInfo.Height = 840;
htmlLoadOptions.PageInfo.Width = 750;
htmlLoadOptions.PageInfo.IsLandscape = false;
var doc = new Document(inp, htmlLoadOptions);
doc.Save(outp);
Adding footer details to Existing PDF
I need some help in getting footer section with details below
Date: on left bottom
Note: on center bottom
Page Number: on right bottom,
On existing static PDF document of 20 pages (combination on both Patriot and Landscape layouts).
I saw adding a text section using PdfFileStamp for adding page numbers. where i would like to add all the three details above in a specified alignment.
Please let me know.
Thanks,
reference objects in xml
Hi,
I am using xml template for generating pdf document using latest version.
I am not able to reference sections or segments by their ID in xml anymore
com.aspose.pdf.Document pdfDoc = new com.aspose.pdf.Document();
pdfDoc.bindXml("D:\\templates\\sampleTags.xml");
Following used to work with the legacy version.
Pdf pdfDoc = new Pdf(bindXML("D:\\templates\\sampleTags.xml", null);
pdfDoc.bindXml("D:\\templates\\sampleTags.xml");
Section section = (Section)pdfDoc.getObjectByID("mainSection")
Sample xml file:
<?xml version="1.0" encoding="utf-8" ?>
<Pdf xmlns="Aspose.Pdf"><Section id="mainSection"> </Section></Pdf>
Thanks
Mamatha
Need help in error
This message was posted using Banckle Live Chat 2 Forum
SVG Support in data URL?
not seeing images in pdf using https
We have also tried to update aspode.pdf to version 11 but this has made no difference.
I have attached for your reference three files: as follows:
Index.cshtm - razor view page (please see line 203, 386, and 390
ReportImage.cs - static class to retrieve url for image at runtime
ImageController.cs - mvc controller which process the request for the image from the url
An error occurred while processing paragraphs
The performance for HtmlFragment
Determining which field to flatten when they overlap
We're trying to flatten the fields so that it will appear the same as when you use Acrobat's sanitize function. I've attached two documents that show my current results for that. For the one called "Aspose Flattened Form.pdf", I simply flattened all of the fields using the Flatten method of the Aspose.PDF.Document object. If you look at the two documents, you'll notice that Acrobat did not flatten the multi-line text boxes, leaving only the single line text boxes; whereas flattening using Aspose flattened both, so you end up with overlapping text.
Another part of the Acrobat sanitize function removes content hidden behind overlapping objects, so perhaps it removed the multi-line text boxes before flattening the fields, but the multi-line text boxes are not completely hidden - the top and bottom edges of the "TheCorp" field are not overlapped, and the bottom edge of the "TheField" field is also not overlapped. There's very little visible, but it's still something.
My question is do you have any suggestions for programmatically determining that the multi-line text boxes won't be visible and hence should be removed and not flattened? The other properties I've checked on the fields don't seem to help - the best I've found are the Flags property of the association Annotation object for the field, but that just includes the "Print" flag for both the multi-line and the single-line text boxes (the multi-line text doesn't get printed, either, despite the flag being set), so there's no difference I can use there. Any ideas at all on how to duplicate Acrobat's behavior using Aspose.PDF would be very appreciated.
Thanks,
Michael Whalen