Unsupported font style when converting HTML to PDF
PDF conversion - reference version 1.7
Thank's
Aspose fails to create large files
PNG converted from PDF is being cropped
TextFragment -- change size
Convert html in pdf,has a bug.
hello, this is my test code below.
Pdf pdf = new Pdf();
Section section = pdf.Sections.Add();
Text text = new Text("<span style='font-family: \"Segoe UI\"; background-color: rgb(242, 249, 255);'>TestRGBColor</span>");
text.IsHtmlTagSupported = true;
section.Paragraphs.Add(text);
pdf.Save(@"C:\\result.pdf");
The result can't display properly, and I find reason is use "SegoeUI" and "rgb color".I used the Aspose.Pdf for .NET 9.4.0 dll.Can you help me fixed the bug?
thank you very much
If the Bookmarks is not exist, Export Bookmarks To XML ( The error occurred)
Text not rearranged after ReplaceText
Aspose pdf 9.3.0 fails to render table
How to convert Persian Or Arabic words ?
PDF to TIF conversion results in a black square on page 1 of the output TIF
HTML with multibyte characters don't convert to PDF properly
Wrapping of Text when doing Search and Replace
I am trying to replace text in PDF files using the following code. The problem is that the text does not wrap if the line becomes too long due to the replacement text. Is there a way to handle this? I have attached sample input and output files to illustrate the problem.
Document pdfDocument = new Document("input.pdf");
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("rinse");
pdfDocument.Pages.Accept(textFragmentAbsorber);
TextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;
foreach (TextFragment textFragment in textFragmentCollection)
{
textFragment.Text = "LONG REPLACEMENT TEXT";
}
pdfDocument.Save("output.pdf");
- Sumit
Form Fields not filled in when converting PDF to JPG
Dim doc As New Aspose.Pdf.Document(fileName)Using memStream As New IO.MemoryStream()'create Resolution objectDim resolution As New Aspose.Pdf.Devices.Resolution(300)'create JPEG device with specified attributes (Width, Height, Resolution, Quality)'Quality [0-100], 100 is MaximumDim jpegDevice As New Aspose.Pdf.Devices.JpegDevice(resolution, 100)'convert a particular page and save the image to stream jpegDevice.Process(doc.Pages(page), memStream)
Return memStream.ToArray()End Using
Exception being thrown using FillImageField
In the old version (AsposePdfKit) I use to be able to set a Digital Signature field in PDF to an image.
Example:
Where pdfLetter is a Form object:
pdfLetter.FillImageField(fieldName, signatureImageFilename);
However the above is now throwing an error: Field name 'Signature' doesn't represent valid text or button field. Field name 'Signature' doesn't represent valid text or button field.
FileVersion 7.3.0.0
Production Version: 2012.08.28
Large MultiPage PDF generated using Aspose PDF 7.2
link to a file that is already attached (embedded) to a pdf
Here's the pseudo-code:
This code runs through the array of paths, and for each path it searches for the "filename.pdf" part of the path within the main PDF (the filename is already in the main PDF) All of that works thus far. But, instead of the paperclip, I am trying to make a rectangle around the text and basically make an "invisible button" to go over each of the filenames in the main PDF.string[] PDFarry; //already pre-populated with a list of file paths to attach
foreach (string PDF in PDFarry)
{
Aspose.Pdf.Text.TextFragmentAbsorber textFragmentAbsorber = new Aspose.Pdf.Text.TextFragmentAbsorber(curFileName);
pdfDocument.Pages.Accept(textFragmentAbsorber);
Aspose.Pdf.Text.TextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;
foreach (Aspose.Pdf.Text.TextFragment textFragment in textFragmentCollection)
{
foreach (Aspose.Pdf.Text.TextSegment textSegment in textFragment.Segments)
{
int curPage = textFragment.Page.Number;
Page curPageNum = pdfDocument.Pages[curPage];
Aspose.Pdf.Rectangle recTangle = textFragment.Rectangle;
string attPath = PDF;
editor.CreateFileAttachment(recTangle.ToRect(), "", attPath, curPage, "Paperclip");
}
}
So, I guess that's the bottom line. I want to draw a rectangle around some text and then turn that rectangle into a link that will open an attached PDF.
Adding an hyperlink to open the attachment
I have a requirement like reading an existing PDF file and adding few attachments to that. At the same time I need to provide a hyperlink called "Click here to open the attachment1" at the end of the document.
What is the best way to do this?