Text Translation in PDF Files

I need to extract the CAD Drawing images and the text from a PDF file. I have the Translated text. I need to put the Translated text back to the PDF file with the quality of the text(Alignment, Wrapping, Font Properties, etc.,) and images intact.

Submitted from: http://saaspose.com/

Hi,

Are CAD Drawings added as attachments in your PDF? If you can share a sample PDF, it will help us in further understanding/testing your requirements.

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com

Dear All,

CAD Drawings are are not added as attachments. They are actual drawings converted from .dwg file into PDF File.

Thanks and Regards,
Padma P.
Tata Consultancy Services
Cell:- 9677292562
Mailto: padma.pichumani@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________

-----Support wrote: -----
To: Padma P <padma.pichumani@tcs.com>

Dear All,

Please find the sample PDF file in the attachment. The intention is to extract the text from the PDF file, write to any intermediate file, get the corresponding Translated text and write it back to the PDF file with the quality of the text and the images intact.

The alignment and wrapping of text should be taken care of. The text block (paragraph text) should be replaced by the translated text as a whole.

Thanks and Regards,
Padma P.
Tata Consultancy Services
Cell:- 00 91 9677292562
Mailto: padma.pichumani@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________

-----Support wrote: -----
To: Padma P <padma.pichumani@tcs.com>

Logged Issues: SAASPDF-76; SAASPDF-77; SAASPDF-78

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com

Hi Padma,

Thanks for sharing the sample and more details.

  1. At the moment, you can use replace text feature to update text in a PDF; formatting of old text will be applied to new text in this case. If you want to add new text, this feature is not supported at the moment but a new feature request has been logged into our issue tracking system as SAASPDF-76.

  2. You can extract images and use image resource to replace images in the PDFs but if you want to add a new image without replacing any existing image, then this feature is not supported at the moment but a new issue to support this feature has been logged into our issue tracking system as SAASPDF-77.

  3. Currently, you can extract CAD drawings as images if those are added as attachments but in your case CAD drawings are not added as attachments so this feature is not supported. A new issue to support this feature has been logged into our issue tracking system as SAASPDF-78.

We will keep you updated on these issues in this thread and share an ETA once our developers analyze these features.

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com

I saw that you have replace feature to find and replace text in the PDF file programmatically using the SAASPOSE API. But i am unable to run the file, when i am importing the SAASPOSE SDK for JAVA, i am getting MalfunctionException and NullPointerException when the Input PDF file URL is generated. Please let me know how to use Saaspose SDK for Java in Eclipse and whether it supports replacements of only words or paragraphs as such. Thank you in advance.

Hi Padma,

Thanks for the information. I’m able to reproduce the exception messages. It is because there are some changes in the Saaspose Java SDK. Anyways, please follow up the steps below:

  1. Download latest Java SDK from here: https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-java
  2. Import Saaspose Java SDK in the eclipse
  3. Create a new package(e.g. TestPkg) in the src folder
  4. Create a new Java class in the TestPkg
  5. Try the source code as described here: https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-java/blob/master/src/test/java/com/aspose/asposecloudpdf/api/TextReplaceTests.java

It is must pass a SaasposeAppNonStatic object in the constructor of Folder and TextEditor classes. I have tested and it is working fine on my side. I hope this will help you.

Please let us know in case of further assistance and comments.

Regards,
Imran Rafique
Support Developer, Saaspose
Support Team
http://www.saaspose.com