Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24730

Re: plz sir send me code to convert a .PDF file to .docx in java

Newsgroups comp.lang.java.programmer
Date 2013-07-11 15:41 -0700
References <1fb433a2-ac65-444a-99c5-f6e2eaf51429@googlegroups.com>
Message-ID <d4d01c9e-fd50-478d-8e97-1896a1ab8bc3@googlegroups.com> (permalink)
Subject Re: plz sir send me code to convert a .PDF file to .docx in java
From seo.aspose@gmail.com

Show all headers | View raw


Aspose.PDF can Convert PDF file to DOC or DOCX format. Here is the link: http://www.aspose.com/.net/pdf-component.aspx
I found the following C#.NET code on their site. Kindly contact their team they can surely help you in this matter.....Thanks

Here is the code...

// Path of input PDF document
String filePath = @"d:\\Source.pdf";
// Instantiate the Document object
Aspose.Pdf.Document document = new Aspose.Pdf.Document(filePath);
// Create DocSaveOptions object
DocSaveOptions saveOptions = new DocSaveOptions();
// Set the recognition mode as Flow
saveOptions.Mode = DocSaveOptions.RecognitionMode.Flow;
// Set the Horizontal proximity as 2.5
saveOptions.RelativeHorizontalProximity = 2.5f;
// Enable the value to recognize bullets during conversion process
saveOptions.RecognizeBullets = true;
// Save the resultant DOC file
document.Save(@"d:\\Resultant.doc", saveOptions);

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

plz sir send me code to convert a .PDF file to .docx in java krishna.taniya@gmail.com - 2013-06-13 07:42 -0700
  Re: plz sir send me code to convert a .PDF file to .docx in java Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-06-13 11:04 -0400
    Re: plz sir send me code to convert a .PDF file to .docx in java Lew <lewbloch@gmail.com> - 2013-06-13 12:52 -0700
  Re: plz sir send me code to convert a .PDF file to .docx in java Arne Vajhøj <arne@vajhoej.dk> - 2013-06-15 21:06 -0400
  Re: plz sir send me code to convert a .PDF file to .docx in java seo.aspose@gmail.com - 2013-07-11 15:41 -0700

csiph-web