Migration from obsolete Aspose.Pdf.Generator namespace, XSL-FO binding
Save changes after close of files customized with Aspose lib
foreground colour triggers a carriage return
How To Set Dictionary To Annotation
Missing assemblies
Protected pdf
Hello,
I have a problem about disable the "Save as"(Ctrl+S) and "Print"(Ctrl+P) when right clicked on pdf web page.(for protect it not share with anyone,means only show it for information).
I have wrote a code as below.
[HttpGet]
public HttpResponse GetPdf(int id)
{
MyContext.File I = null;
if (id > 0)
I = (from p in File where p.ID == id select p).SingleOrDefault();
HttpResponseMessage R = null;
var context = HttpContext.Current;
if (I != null)
{
context.Response.Buffer = true;
context.Response.Charset = "";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
context.Response.ContentType = "application/pdf";
context.Response.AppendHeader("Content-Disposition", "inline; filename=" + I.NAME+ ";");
context.Response.BinaryWrite(I.DATA);
context.Response.Flush();
context.Response.End();
}
else
R = Request.CreateResponse(HttpStatusCode.BadRequest);
return context.Response;
}
If your tool can provide, could you please help us?
Thanks,
Regards.
stamped pdf is large
JpegDevice.Process Sometimes Garbles Text
PDF to PDF/A-1b conversion issue
While converting a PDF to a PDF/A-1b with Aspose.Pdf, we run into an issue. The code is trying to embed fonts as per Aspose DEV guide,
https://docs.aspose.com/display/pdfjava/Formatting+PDF+Document#FormattingPDFDocument-EmbeddingFontsinanExistingPDFFile
but fails to do so. The server log indicates that the code trying to embed the fonts does run and does not throw any exception.
The code runs on JBoss 7.1 application server residing on Red Hat Linux 6.x with Java 1.7.
Please advise how to ensure that the listed fonts are successfully embedded into the generated PDF/A. Where does Aspose look for these fonts?
Additionally, there is a non-blocking error reported in the conversion log.
<Problem Severity="Error" Clause="6.7.7" Convertable="True">The instanceID field shall not be specified</Problem></Metadata>
Please also advise how to overcome that error.
Many thanks!
Java code, conversion log, and original PDF attached.
add review status on comments and to review history
Extract table data from PDF
Problem in adding Burmese text to PDF
Out of memory exception
Page numbers are not showing in footer - PDF
Issue here is:
When I convert document from HTML to PDF (using download option), page numbers are not showing.
Html for footer is:
Code for converting HTML to PDF:
input = new ByteArrayInputStream(documentDomain.getHtmlContent().getBytes("UTF-8"));
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(input);
out = new ByteArrayOutputStream();
doc.save(out, com.aspose.words.SaveFormat.PDF);
If I create page numbers everything works fine, but I don't want to create page numbers in footer if it already exists.
Do you know what is a problem here?
This is working for Word but for PDF not.
I attached both Word and PDF.
Regards
ASPOSE.PDF HtmlFragment Size Limit Issue
Hi,
We are getting SystemOutOfMemory exception when we are trying to create PDF from Html content, and the content size exceeds more than(250-300 kb). We are using Aspose PDF HtmlFragment for rendering html content in PDF.
Also here we are attaching the sample code to understand our scenario better.
Please suggest/provide any alternative or work around for this issue.
Thanks
Missing Assembly error (Aspose.Font and Aspose.HTML) and table formatting error
as in Thread https://www.aspose.com/community/forums/thread/835575.aspx mentioned does Aspose.Pdf 17.1 and newer throw the Assemly Aspose.Font missing error.
We updated all the dll's to the newest version (see below), but due to the problem mentioned above, we have to use an older version of Aspose.Pdf.
Unfortunytely, from version 16.10 on, a FileNotFoundException is thrown, because the Aspose.HTML assemly is missing, when we load an HTML document into an Aspose.Pdf document, including an HTMLLoadOption to define a CustomLoaderOfExternalResources:
Aspose.Pdf.HtmlLoadOptions htmlOptions = new Aspose.Pdf.HtmlLoadOptions(folderUrl);
htmlOptions.CustomLoaderOfExternalResources = uri => { //handling of referenced files };
Aspose.Pdf.Document htmlDocument = new Aspose.Pdf.Document(memoryStream, htmlOptions) { IgnoreCorruptedObjects = true };
I tested ALL versions starting from 11.2.0 to 16.12.0 regarding both missing assembly errors - the result:
we have to use the Aspose.Pdf 12.0.0 version, but this version does not render tables correctly (see attachment - the blackening in the screenshot is due to data protection).
So, right now, our only possibility to convert an HTML file into PDF is to use Aspose.PDF version 12.0.0, including the table rendering issue...that is really, really frustrating!
.Net 3.5, SharePoint 2010, Windows Server 2008 R2
Aspose.Pdf 12.0.0.0
Aspose.Cells 17.5.0.0
Aspose.Email 17.4.0.0
Aspose.Imaging 17.4.0.0
Aspose.Slides 17.4.0.0
Aspose.Words 17.5.0.0
PDF Split Sample Source code based on the PDF file Size
HTML table border style shows in bold.
When we generated a pdf from Word template. The below content generated html table as expected. But displaying the border in bold. Please find attached screenshot for the same.
Level | LoA Triggers | Approval Request | Justification/Mitigations |
---|---|---|---|
4 | 6.4 Limit of Liability | test | |
3 | 6.5 Indirect and Consequential Damages | 4 | test |
Could you please help us to resolve this issue. We will definitely appreciate your help.
Thanks & Regards,
Faisal. N
Extract table from pdf
Is it possible to have TextAnnotation in XML
is it possible to use a TextAnnotation in XML format like how we would use Segment or Attachment?
Thank you
pranusha