Export Html to Pdf : Text Align-Center not maintained if Background color is specified
Add text with small caps
Support creation of named destinations in existing PDF file
Hello Aspose team,
Is Aspose.Pdf library support creation of named destinations in existing PDF file?
I need create named destination for refer to it from URL as PDF Open Parameters: http://…./file.pdf#nameddest=123
I see in documentation class NamedDestination, but can’t instantiate it – it has internal constructor (documentation though say, that it is public: http://docs.aspose.com:8082/docs/display/pdfnet/NamedDestination+Constructor)
Best Regards,
Vasili.
How to set printer driver settings
I have to set parameters (select type : bond, plain..., select staple or not, select output media) for printing.
I have found how to set this parameters with .NET but not with Aspose.PDF printing.
How can I do that ?
Thank you.
Fabien.
HTML to Pdf conversion issue using Aspose PDF
It is not showing the text i have in the html file
Code is :
var htmloptions = new HtmlLoadOptions(Server.MapPath("."));
htmloptions.UseNewConversionEngine = true;
Document pdf = new Document(Server.MapPath("~/Docs/Test.html"), htmloptions);
pdf.Save(Server.MapPath("~/Docs/Test.pdf"));
I am getting the images correctly if i insert image in the html file
This message was posted using Email2Forum by Tahir Manzoor.
PageHeight is: 33482.0 PageWidth is: 2490.0. The minimum allowed page size is 3 by 3 units (approximately 0.04 by 0.04 inch); the maximum is 14,400 by 14,400 units (200 by 200 inches)
HTML to Pdf conversion issue
here the text and images are getting separated
but the images which are converted are with background page
the image is not displaying separately
with back ground page itself it is displaying as image
the ouptput is html web page and folder having images of pdf
and also if i am having table it is considering it as image
can u help me in resolving this issue
This message was posted using Email2Forum by Tahir Manzoor.
pdf to html conversion
Bug: PDF is not rendered correctly to image
I tested with Aspose.Pdf 9.4.0.0
Code I used:
var resolution = new Resolution(150);
var pngDevice = new PngDevice(resolution);var doc = new Document(source);var pageCount = doc.Pages.Count;for (var i = 0; i < pageCount; i++) {using (var imageStream = new FileStream(outputPath + "_" + i + ".png", FileMode.Create)) { pngDevice.Process(doc.Pages[i + 1], imageStream); imageStream.Close(); } }
Can you please take a look?
Thanks, Corne
Converting a PDF to HTML removes hyperlinks
Hi!
Whenever I try to convert a PDF all the hyperlinks are removed in the HTML file.
Is there anything I can do to keep the hyperlinks?
Aspose.Pdf.Document pdoc = new Aspose.Pdf.Document(filepath);
Aspose.Pdf.HtmlSaveOptions saveOptions = new Aspose.Pdf.HtmlSaveOptions(true);
saveOptions.FixedLayout = true;
saveOptions.SplitIntoPages = false;
saveOptions.SplitCssIntoPages = false;
saveOptions.RasterImagesSavingMode =
Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
saveOptions.FontSavingMode =
Aspose.Pdf.HtmlSaveOptions.FontSavingModes.AlwaysSaveAsWOFF;
pdoc.Save(filepath + ".html",
saveOptions);
Running version Aspose.Pdf 9.2.1.0.
Thanks in advance
Mattias
Bookmark text corrupted with Japanees/Chineese characters for Security enabled PDF's
Please let me know if you need anymore details.
Get FieldLimit
Particular PDF causes runaway memory usage
Aspose PDF.. Anchor Tag issue " <a href= "
I am having an issue with the Aspose PDF convertion.. Aspose PDF is failing to load the anchor tag in the last pages..
For example : If there are 3 pages and all 3 are containing different different Hyperlinks in each pages, then when i export the Aspose PDF, i am unable to view the last pages Hyper links..i.e., on page 3..
If i reduce pages to 2 then problem is occurring in page 2... i.e., all times My aspose pdf is failing to load the hyperlink / Anchor tag "<a href = " in the last pages.. How can I resolve this..
Regards,
Aravind
Html to PDF, strange result
Please add <pre> tag support ASAP
HTML Text with background-color set has unwanted linebreaks
Hi everybody,
I have an issue with the output of HTML text in PDF documents. Once the HTML code includes a background-color style there's a linebreak before and after that part (see sample code).
The intended result is a single line without the linebreaks.
As-Is:
Normal test, and
deleted text
as well as
text with background colors
shouldn't have any linebreaks in it
Intended:
Normal test, and deleted text as well as text with background colors shouldn't have any linebreaks in it
publicvoid StyleAddedLineBreaks()
{
LicenseSetter.LicensePath = ConfigurationManager.AppSettings["Aspose.LicensePath"];
LicenseSetter.SetLicense();
Pdf pdf1 = newPdf();
Section sec1 = pdf1.Sections.Add();
Text desc;
desc = newText("Normal text, and <del style=\"background-color:#FFCC99;\">deleted text</del> as well as <ins style=\"background-color:#FFFF99;\">text with background colors</ins> shouldn't have any linebreaks in it");
desc.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(desc);
// Save the resultant PDF document
pdf1.Save(@"C:/temp/StyleAddedLineBreaks.pdf");
}
Checkboxes in PDF are getting checked incorrectly.
Hi,
We are using Aspose for on the fly PDF generation. The PDF files we generate are to be prefilled with ceratin values( and check boxes are also to be ticked based on values we pass). We use XFDF for populating the pdf fileds. When we render the XFDF in the browser, the checkboxes are getting ticked(selected) correctly. But when we render the PDF after prefilling it with XFDF data using Aspose, the checkboxes are are not getting ticked (selected) properly. We are using Aspose 8.3.3 version. Kindly let us know whether this issue has already been addressed. If yes let us know the solution for this issue.
EDIT :
Also tried using Aspose 8.9.0.0 version. Still the issue persists. Kindly help us in resolving this issue.
Kindly reply to us asap. We are in urgent need of solution for this issue.
Regards,
kishorekumar.
To Add text into PDF file
Hi Team,
Below is the code snippet wrote to add a simple text to PDF file using Aspose.Pdf contained classes. Though the file is created in the location, there is no content(i.e) assigned text in the output pdf file.
Pdf m_pdf = new Pdf();
Section section = m_pdf.Sections.Add();
Aspose.Pdf.Table pdfTable = new Aspose.Pdf.Table(section);
Aspose.Pdf.Row pdfRow = pdfTable.Rows.Add();
pdfRow.Cells.Add();
Aspose.Pdf.Cell pdfCell = new Aspose.Pdf.Cell(pdfTable);
Text pdfText = new Text();
TextInfo textInfo = pdfText.TextInfo;
Segment segment = pdfText.Segments.Add();
string tempString = "some text";
segment.Content = tempString;
textInfo = segment.TextInfo;
if (pdfText != null) pdfCell.Paragraphs.Add(pdfText);
section.Paragraphs.Add(pdfTable);
MemoryStream stream = new MemoryStream();
m_pdf.Save(@"c:\temp\test.pdf");
Please correct if i am missing any thing here.
Thanks,
Divya
Poor performance converting PDF pages to image
We are looking for a toolkit that can convert PDF pages to an image.
So we did some tests with different toolkits including Aspose.Pdf (we have an Aspose.Total license)
We looked at the performance and quality of the conversion (if the resulting image was correct).
These are the results:
Toolkit Time Correct (of 30 documents)
Aspose 109s 27
PDF4Net 81s 21
Atalasoft 55s 27
GdPicture 61s 27
Gnostice 248s 16
ceTeSoftware 29s 30
PDF Tron 48s 27
As you can see the quality of the Aspose conversion is good (good enough for us): only 3 of 30 documents were converted incorrectly of which 2 were only small color errors.
The performance of Aspose.Pdf is however poor. It also seems to use a lot of memory during conversion; much more than the other toolkits.
Questions:
1. do you think it is possible to improve the speed of the conversion or is there no room for improvement due to the way the toolkit was build?
2. do you have plans to improve the speed and memory consumption in the near future?
Thank you and best regards,
Corné