Quantcast
Channel: Aspose.Pdf Product Family
Viewing all 1038 articles
Browse latest View live

Regarding table of content using aspose.pdf licence version

$
0
0
Hi support team,


We are using Aspose.PDF to convert pdf file to doc format. we are using licence version.
we are creating PDF file using DITA OT tool. 
Now we need to convert this PDF file into Doc format. Aspose is converting this into doc format but not in a proper way, the issue we are facing is Table of Content (TOC) of our pdf is not getting reflected on Doc file.
 
So requesting you to please look into this as high priority.
My contact number is +91 9604432049 
my email address : Srinivas.Gumma@e-zest.in






Error when using pdfEditor.append: com.aspose.pdf.kit.np cannot be cast to com.aspose.pdf.kit.nq

$
0
0
We have a process that successfully takes two pdf files and combines them using the pdfEditor.append.  In an isolated scenario, we receive the following error message when combining two pdf files:

"com.aspose.pdf.kit.np cannot be cast to com.aspose.pdf.kit.nq"

What could be causing this?  

Thanks for your help!

Aspose PDF TOC

$
0
0
Good Day Everyone,

How to do i customize the table of contents. 
My page numbers are displaying like C1,C2,C3, X1,X2,X3, Z1,Z2,Z3 .. something like this but when i add TOC then in the index page then page numbers are displaying in number format.

How do i display page number in text format).. Please find the below example.
    
           Table of Contents
Page A-----------------------------A1
Page D----------------------------D4
Page E------------------------ E3
Page X ------------------------- X4.

Please advise how do i accomplish.

Thanks in advance.

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

$
0
0
Converting HTML to PDF throws "java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment".  Added java.awt.headless=true and now it throws a HeadlessException.

This started happening when I update to aspose.pdf-17.3.0-java.  The previous version did not have this problem.

I have included my source and have attached the input file.

         ArrayList<String> fonts = new ArrayList<String>();
    fonts.add("/ScholarOne/ConversionEngine/fonts");
    Document.setLocalFontPaths(fonts);
    
    String fileNameWithOutExt = FilenameUtils.removeExtension(file.getPath());
      
    String absolutePath = file.getAbsolutePath();
    String filePath = absolutePath.
        substring(0,absolutePath.lastIndexOf(File.separator));
    
    HtmlLoadOptions htmloptions = new HtmlLoadOptions(filePath);
    htmloptions.setInputEncoding("UTF-8");
        
    // Load HTML file
    Document doc = new Document(file.getPath(), htmloptions);
    PageSize size = PageSize.getA4();
    for (Page page : (Iterable<Page>) doc.getPages())
    {
      page.setPageSize(size.getWidth(), size.getHeight());
    }
    
    // Save PDF file
    doc.save(fileNameWithOutExt + ".pdf");

Signature invalid if certifying a ISO19005-1 PDF-Document (PDF/A)

$
0
0
Hi!

If im certifying a PDF document which was created by MSWord (2016 in my case), the signature gets invalid if the "Save as PDF/A"-Option was enabled in MSWord.

This only happens, if i save and reload the source pdf document before.
I have to save the document because i'm adding a page.

This only happens if the sourcedocument was saved with the PDFA-Option enabled in MSWord.
This not applies to a document without checking the PDFA Option in word!

I have attached a sample project including the 2 PDFs.

Best Regards
Johannes






PDF signing questions (multiple Digital Signatures (PKI)) PAdES support

$
0
0
Does Aspose PDF support digital signing a PDF that already has a digital signature without invalidating the first signature?  I believe this is referred to as Serial Signing

Example: A PDF is authored by a third party and signed to authenticate the author.  We want to append some additional information then apply our signature.  We would like both signatures to be intact, the signature on the original portion of the document and the signature on the whole (outer) document.

iText supports this as it supports PAdES (PDF Advanced Electronic Signatures) 

.net standard

$
0
0
Hi,

Is there any plan to support the .Net Standard or netcoreapp ?

Thanks in advance, 

Alexandre Swioklo

Verifying the TextStamp

$
0
0
Hi There,

We are using Apose PDF Java library to apply TextStamps, and it is working fine with no issues. What I want to do is add some unit tests to verify that TextStamps are there. 
Can you please direct me to some code which reads the text stamps so that I can verify?

Thanks,
Manish

Need more clarity on specific functionality before purchase

$
0
0
We are planning propose this product to our client. I went through all the PDF and Cells documents and tried POC on this same.

However given document does not given much clarity on few of my specific requirement, So I would like to speak to any of the expert whether my requirement is supported or not.

My requirement:
Aspose.PDF
1.Convert Plain HTML template to PDF containing bar Chart.
2.Convert Plain HTML template with CSS and JavaScript to PDF containing bar Chart.



My conatct No : +91-9176237971
My mail ID : magesh.murugesan2@cognizant.com

restart page numbering

$
0
0
Hello, I have different sections in my document, I want to restart page numbers for each section, I would like to know how to do it, Is there any property like IsPageNumberRestarted which we used to have in Generator. I have one solution where I can create new document for each section and merge them later, but I don't want to go this way. Could you please suggest me any another way

dpi or ppi set feature for aspose.pdf or aspose.image

$
0
0
is it possible to set the dpi for pdf file or set the dpi for the image in the pdf file? If it's yes, then is there any way to locate the image in each page of the pdf file, so that I can fetch that page's image to process dpi and do compress without quality loss, and finllay I can get the small size of the pdf file

Migration from obsolete Aspose.Pdf.Generator namespace, XSL-FO binding

$
0
0
Hi,

We're migrating from the obsolete Aspose.Pdf.Generator namespace to Aspose.Pdf. The main problem is that I could not find any dedicated documentation reference for this, so the the migration is being implemented intuitively.

But as for now, my only problem is how to get away from Aspose.Pdf.Generator.Pdf.BindFO method. I could not find an alternative on the Aspose.Pdf.Document type. Document.BindXml method is supposed to be used with xsl not with xslt. 

So, is there an existing new API or should I use Aspose.Pdf.Generator.Pdf.BindFO for now?

Thanks

Save changes after close of files customized with Aspose lib

$
0
0
Hi,

I have noticed something strange with files that have been customized with aspose pdf library.

After opening a file (for our example, watermark added by aspose), and changing zoom or hovering over the inner attachment in the pdf, once you try to close the file Adobe reader alert pop
"Do you want to save changes to 'example.pdf'' before closing?

This is reproducing in Adobe reader only and with files that aspose customized...

In foxit reader it doesn't happen....

Attaching the example.pdf file

Thanks

foreground colour triggers a carriage return

$
0
0
When I create a PDF,  HTML segments styled with foreground are not displayed as expected

The segment is defined as :


IsHtmlTagSupported = true;
IfHtmlTagSupportedOverwriteHtmlFontNames = true;
IfHtmlTagSupportedOverwriteHtmlFontSizes = true;
IfHtmlTagSupportedCssWinsOnFirstLevelChildren = true;

The HTML I'm setting in the segment is defined in the attached file.

The output is also attached. See the new line created after the text with yellow foreground colour. This should not happen. Could you look into it ? 



How To Set Dictionary To Annotation

$
0
0
Not sure if i missed it but looking at the api the only available related to dictionary is an appearance dictionary and this is not what i need.

Does aspose.PDF support setting dictionaries where a lower level of code blocks are needed?

JpegDevice.Process Sometimes Garbles Text

$
0
0
We have begun experiencing cases in which some of the text on a page of a PDF has its text garbled when we use JpegDevice.Process to convert it to an image.  I have attached an example of a document for which most of the text on page 7 experiences the issue.  The method which is called for each page of the document is provided below.  In case it matters, we are always passing in a "scalePercent" of 70.  Also, in case it matters, we are calling this method from within a Parallel.ForEach(...).

If you experience the same issue, perhaps you could suggest a change to my code that would address the issue such that all the text on all the page images would be correct?

Thank you very much.

(here's my code)

public byte[] ProcessJPG(Aspose.Pdf.Page page, int scalePercent)
{
var imageConverter = new JpegDevice(new Resolution(200), 60);
using (var ms = new MemoryStream())
{
imageConverter.Process(page, ms);
var resized = new Bitmap(ms).ScaleByPercent(scalePercent);
return ImageToByteArray(resized, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}

PDF to PDF/A-1b conversion issue

$
0
0
Dear All,

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

$
0
0
Hi,

Does aspose support review status for comments where STATE is equal to Reviewed  and state model values are Accepted, Rejected, Completed, Cancelled, None ?

If so, would like to request a sample code set by a different user (not the same user who created the comment/reply).

Also, an addition to the sample code to add review status to the history. I see in Acrobat when you right click the comment > properties, there is a review history on the various status set by users on specific dates.

Thank you

Extract table data from PDF

$
0
0
Hi Team,
I have a requirement to extract table data as a table from PDF.Can you please help us in achieving this.

Problem in adding Burmese text to PDF

$
0
0
Hi,

I am using Aspose.pdf and adding Burmese Text to my pdf and Bureme Text is broken into consonants and vowels. Please refer to attached screenshot Capture.png. I found that you have recently fixed something similar for Aspose.word, hope this also can be fixed. 

Code I am using is :
        Aspose.Pdf.Document document = new Aspose.Pdf.Document();
        Aspose.Pdf.Page pdf = document.Pages.Add();
        FloatingBox titles = new FloatingBox();
        var newText = new TextFragment("");
        var segment = new TextSegment(Burmese_Text);
        Aspose.Pdf.Text.Font myanmarFont = FontRepository.FindFont("Myanmar3");
        myanmarFont.IsEmbedded = true;
        segment.TextState.Font = myanmarFont;
        newText.Segments.Add(segment);
        titles.Paragraphs.Add(newText);
        pdf.Paragraphs.Add(newText);
        document.Save(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "HelloWorld1234.pdf"));

Regards,
Ankit Singhal
Viewing all 1038 articles
Browse latest View live