In that case, if possible - a list of the elements that you are adding to the PDF may be helpful in investigating the feasibility of the requirements that you have. Please try to compile a list of the elements like TextSegments, TextFragment, Table, etc. share with us so that we can log an investigation ticket and share the ID with you.
Hello below the code used to insert the various elements in the pdf, the code is not complete.
The initial part of the document creation is the same as the code already sent
// Add a new page to the main Aspose PDF document
currentAsposePage = document.getPages().add();
currentAsposePage.setPageSize(newPageSize.getWidth(), newPageSize.getHeight()); // Apply page size
currentAsposePage.getPageInfo().getMargin().setLeft(0);
currentAsposePage.getPageInfo().getMargin().setRight(0);
currentAsposePage.getPageInfo().getMargin().setBottom(0);
currentAsposePage.getPageInfo().getMargin().setTop(0);
currentAposeGraph = new Graph(currentAsposePage.getPageInfo().getWidth(),
currentAsposePage.getPageInfo().getHeight());
currentAsposePage.getParagraphs().add(currentAposeGraph);
// add objects
// line
com.aspose.pdf.drawing.Line pdfLine = new com.aspose.pdf.drawing.Line();
pdfLine.getGraphInfo().setLineWidth(1);
pdfLine.getGraphInfo().setColor(toAsposeColor);
pdfLine.setPositionArray(new float[] { startX, startY, endX, endY });
currentAposeGraph.getShapes().addItem(pdfLine);
// rectangle
com.aspose.pdf.drawing.Rectangle rect = new com.aspose.pdf.drawing.Rectangle(strokeBoxX, strokeBoxY, strokeBoxWidth, strokeBoxHeight);
currentAposeGraph.getShapes().addItem(rect);
// text
FloatingBox floatingBox = new FloatingBox();
floatingBox.setLeft(x);
floatingBox.setTop(y);
floatingBox.setWidth(width);
floatingBox.setHeight(height);
floatingBox.setNeedRepeating(false);
com.aspose.pdf.TextFragment fragmentColl = new com.aspose.pdf.TextFragment();
TextSegmentCollection sc = fragmentColl.getSegments();
if(lstTextSegment != null && lstTextSegment.size() > 0) {
for (int i = 0; i < lstTextSegment.size(); i++) {
com.aspose.pdf.TextSegment segment = lstTextSegment.get(i);
sc.add(segment);
}
floatingBox.getParagraphs().add(fragmentColl);
}
currentAsposePage.getParagraphs().add(floatingBox);
// end add objects
PdfFormatConversionOptions options = new PdfFormatConversionOptions(
"c:\\butta\\taggedpdf2.xml",PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);
options.setAutoTaggingSettings(AutoTaggingSettings.getDefault());
document.convert(options); // error to convert
document.save(os);
Thanks
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFJAVA-45130
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hello, is there any news regarding the resolution of the problem or at least an indication on how to tag the elements individually without using automatic tagging?
Thanks.
We are afraid that no update is available at the moment because ticket hasn’t been investigated yet due to other pending issues in the queue. We have already logged your concerns and will definitely consider them during analysis process. As soon as we have some updates, we will inform you. Please be patient and spare us some time.
We are sorry for the inconvenience.
Good morning, I’d like to reiterate my inquiry regarding the status of this report.
What’s the status of the fixes or implementations?
I’m still wondering if it’s possible to tag the elements from code without calling a method that does it automatically.
Thanks
The ticket is still pending resolution due to earlier issues in the queue. However, your concerns have been noted, and we will promptly update you as progress is made. We kindly ask for your patience and sincerely apologize for any inconvenience caused.
Good morning, have you had any updates regarding this report?
Can we tag the individual elements when creating the PDF?
Thanks.
We regret to inform you that the ticket has not been resolved yet. Our team is actively working on it; however, there are other tickets in the queue that were submitted earlier. Rest assured, your concerns have been logged, and we will promptly update you as soon as there is progress. We sincerely apologize for any inconvenience caused.
Good morning, any news? How’s the resolution of the open ticket progressing?
Thanks.
The ticket is currently under investigation and has not yet been resolved. We will notify you as soon as we have definitive updates regarding its resolution. Thank you for your patience and understanding. We sincerely apologize for any inconvenience caused.
Good morning, I’m wondering what the status of the open case is. Is it possible to request a resolution? It’s been open for months.
The ticket has been under the investigation phase and as it was logged under free support model, it is scheduled on the basis of first-come, first-served policy. Your concerns have already been recorded under the ticket and raised internally. We will surely inform you once we make some significant progress regarding ticket fix. We appreciate your patience and comprehension in this matter. We apologize for the inconvenience.