Printing PDF pages from different printer trays
Type mismatch between indexed read and indexed write methods
when using your Aspose pdf example - TableInHeaderFooter code, the following error occurs on this line:
-------------------------------------------------
Section sec1 = pdf1.getSections().add()-------------------------------------------------
2014-08-25 11:28:02,920 [http-bio-8080-exec-8] ERROR errors.GrailsExceptionResolver - IntrospectionException occurred when processing request: [GET] /rest.services-is.eis/students/1
type mismatch between indexed read and indexed write methods: _Item. Stacktrace follows:
Message: type mismatch between indexed read and indexed write methods: _Item
Line | Method
->> 387 | findIndexedPropertyType in java.beans.IndexedPropertyDescriptor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 215 | setIndexedReadMethod in ''
| 471 | <init> . . . . . . . . . . in ''
| 647 | processPropertyDescriptors in java.beans.Introspector
| 543 | getTargetPropertyInfo . . in ''
| 418 | getBeanInfo in ''
| 163 | getBeanInfo . . . . . . . in ''
| 19 | createStudentProfilePdf in com.scmt.util.Reporting$$EOnwNrZE
| 79 | $tt__show . . . . . . . . in rest.services.is.eis.StudentController
| 198 | doFilter in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter . . . . . . . . . in grails.plugin.cache.web.filter.AbstractFilter
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
--------------------------------------------------------------------------------------------------------------------
As you can see, I am using REST Services under Grails.
I am building an example application which will decide if we use Aspose in our future projects. Thus I still am using the trial version of Aspose.
My setup:
- IntelliJ IDEA 13.1.4
- Java 1.7.0_67
- Grails 2.3.9
Thank you in advance.
I want to extract text from PDF but failed. Does your product extract it.
Hi,
I copied the dll to bin folder and then the code works. But it cannot
retrieve the text as desired. I want to extract text from PDF but failed. Does your product
extract it. If yes then let us know.Document pdfDocument = new Document(@"C:\AA\Maval_Puravani2\Test\A2050015.pdf");
//create TextAbsorber object to extract text
TextAbsorber textAbsorber = new TextAbsorber();
//accept the absorber for all the pages
pdfDocument.Pages.Accept(textAbsorber);
//get the extracted text
string extractedText = textAbsorber.Text;
// create a writer and open the file
TextWriter tw = new StreamWriter(@"C:\AA\Maval_Puravani2\Test\extracted-text.txt");
// write a line of text to the file
tw.WriteLine(extractedText);
// close the stream
tw.Close();
This gives output as following
Evaluation Only. Created with Aspose.Pdf.
So I cannot test if your component extracts correct text from the PDF.
thx,
M.Irfan.
Signing PDF using the X509Certificate2 instead PFX file
For signing we need two different ways:
1) use instance of X509Certificate2 similar as used in class PdfDigitalSignatureDetails in Aspose.Words for signing PDF during export to PDF.
2) for signing in WEB browser use "detached" signature. Signing have three phases:
- prepare PDF and compute hash for signing on WEB server (in Aspose)
- signing computed hash on browser (in our Java applet)
- input PKCS7 formated signature with certficate chain to prepared PDF on server (in Aspose)
Do you plan first or first and second our request implement to Aspose.Pdf? If yes, than when?
extract attachement in a PDF document generated with acrobat XI
Create PDF using JSON input
hi,
Can Aspose.PDF Java create a PDF from a JSON input object? Please let us, this will help us a lot in acheiving major requirement.
Thanks,
Rajesh
Adding Files as attachments to PDF
hi,
How can we add attachments to a PDF using Aspose API? If possible, please share a sample Java progam.
Thanking You
Rajesh
Saving issue
How do I confirm the file format?
Page Orientation Settings for com.aspose.pdf.Document
Add Page Number Stamp in a PDF File Out of memory Error
I am using vb.net code which you have provided on below link and trying to give page number to PDF which has 15000 pages.
But this gives me out of memory error.
please help me to overcome this.
I am using latest aspose.pdf dll.
http://www.aspose.com/docs/display/pdfnet/Add+Page+Number+Stamp+in+a+PDF+File
how can I save the file in incremental mode like after each 1000 page I want to save.
Problem with Paragraph breaks
For all the conversions we are carrying out, a Paragraph break is present at the end of each line. This should not be the case since Paragraph break appears only after the end of a Paragraph.
I am attaching the converted file to this thread. Can you please fix this issue ASAP. We are about to make our release but this is blocking us.
Regards,
Dheeraj
PDF/A does not identify itself as compliant with any standard?
Aspose.PDF
This message was posted using Banckle Live Chat 2 Forum
Supporting large PDF documents
Conversion from PDF to single html
PDF table rows overlap each other if table goes over a page
I have an issue when a table goes over a page long. The first two rows on the new page seem to render on top of each other (see attached screenshot and Output.pdf).
I don't think I am doing anything to fancy. It seems to be related to setting the PageMarginTop and PageMarginBottom values in the section. If I leave these out it seems to render OK.
Any help appreciated. I just upgraded to the latest version of Aspose.Pdf: 8.9.0.0 (.net 3.5 version).
Cheers,
Dave
Code (XML is attached):
public bool ExportTestPdf()
{
Pdf pdf = new Pdf();
XmlDocument pdfXml = new XmlDocument();
pdfXml.LoadXml(Resources.TestPdf);
pdf.BindXML(pdfXml, null);
Section sectionMain = pdf.Sections["SectionMain"];
Table questionTable = (Table)sectionMain.Paragraphs["QuestionTable"];
Row baseHeaderRow = questionTable.Rows["Header"];
questionTable.Rows.Remove(baseHeaderRow);
Row baseRow = questionTable.Rows["BaseRow"];
questionTable.Rows.Remove(baseRow);
for (int i = 0; i < 80; i++)
{
if (i % 20 == 0)
{
Row rowHeader = (Row)baseHeaderRow.CompleteClone();
Segment headerText = ((Text)rowHeader.Cells["QuestionHeaderCell"].Paragraphs["QuestionHeaderLabel"]).Segments[0];
headerText.Content = "Some Topic: " + i;
questionTable.Rows.Add(rowHeader);
}
Row row = (Row)baseRow.CompleteClone();
Segment questionText = ((Text)row.Cells["QuestionCell"].Paragraphs["QuestionLabel"]).Segments[0];
questionText.Content = "This is a question: " + i;
questionTable.Rows.Add(row);
}
string filename = "Output.pdf";
pdf.Save(filename, SaveType.OpenInAcrobat, HttpContext.Current.Response);
return true;
}