WANTED TO SELL COMPLETE WEBSITE WITH DOMAIN, If anyone interested to purchase this site please contact on Email-projectbuckets789@gmail.com for further discussion.
3 views
Posted in PHP Project by ProjectBuckets-Free Projects Source Code (670 points)

Title: Facebook

Language: HTML,CSS,Javascript,PHP,MySQL
PHP projects source code: Facebook social networking media with dynamic form processing code in PHP.This is basic PHP script for students and PHP beginners.

You can use this php project just by extracting the given PHP zip file and make use of it.This Php project is totally free for all kind of students..

This PHP project is an example of functionality of dynamic pages using php source code.Throughout this project JavaScript is used for validations be it simple one or complex.Facebook is a software for social networking media.

Its a platform for sharing owr day-to-day life and thoughts by using electronic media.A totally new concept that is way ahead from the simple mail exchange andIM’s facilitated by Yahoomail and other mail servers. Now a days it’s widely used for sharingsome memorable movements of our life as-well-as bussiness growth by photo shairing.

1 Answer

answered by ProjectBuckets-Free Projects Source Code (670 points)
package jar;

import java.io.File;

import java.io.FileInputStream;

import java.io.FileNotFoundException;

import java.io.FileOutputStream;

import java.io.IOException;

import java.io.InputStream;

import java.io.OutputStream;

import org.apache.log4j.Logger;

import org.apache.poi.xwpf.usermodel.XWPFDocument;

public class PDFToDocConverter {

static final Logger logger = Logger.getLogger(PDFToDocConverter.class);

public void convertPDFToDoc(String pdfFile, String docFileName) {

logger.info("PDF to doc file convertion is in progress");

OutputStream oos = null;

InputStream is = null;

try {

File f = new File(pdfFile);

String docFile = docFileName + ".doc";

logger.info("Given doc file name is '"+docFile+"'.");

oos = new FileOutputStream(docFile);

byte[] buf = new byte[(int) f.length()];

is = new FileInputStream(f);

int c = 0;

while ((c = is.read(buf, 0, buf.length)) > 0) {

oos.write(buf, 0, c);

oos.flush();

}

} catch (IOException e) {

e.printStackTrace();

}

XWPFDocument document = new XWPFDocument();

try {

document.write(oos);

document.close();

} catch (FileNotFoundException e) {

logger.error("Given pdf file is not found. Please check file name/path.");

e.printStackTrace();

} catch (IOException e) {

logger.error("Error while converting pdf to doc.");

e.printStackTrace();

} finally {

try {

is.close();

oos.close();

} catch (IOException e) {

e.printStackTrace();

}

}

logger.info("PDF to doc file convertion is completed successfully.");

}

}

/**

 * Hello world!

 *

 */

import org.apache.log4j.Logger;

/**

 * PDF file to Doc converter !

 *

 */

public class App

{

static final Logger logger = Logger.getLogger(App.class);

    public static void main( String[] args )

    {

   

    PDFToDocConverter pdfToDocConv = new PDFToDocConverter();

    String pdfFile = System.getProperty("pdfFilePath");

    String docFileName = System.getProperty("docFileName");

    if(pdfFile == null ) {

    logger.error("PDF file is not found.");

    System.exit(0);

    }

    logger.info("Given pdf file name is '"+pdfFile+"'.");

    if(docFileName == null ) {

    logger.error("Doc file name is not provided.");

    System.exit(0);

    }

   

    pdfToDocConv.convertPDFToDoc(pdfFile, docFileName);

   

    }

}

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>com.sadki.softs</groupId>

  <artifactId>pdftodocfile</artifactId>

  <version>0.0.1-SNAPSHOT</version>

  <name>pdftodocfile</name>

  <!-- FIXME change it to the project's website -->

  <url>http://www.example.com</url>

  <properties>

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    <maven.compiler.source>1.7</maven.compiler.source>

    <maven.compiler.target>1.7</maven.compiler.target>

  </properties>

  <dependencies>

    <dependency>

      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <version>4.11</version>

      <scope>test</scope>

    </dependency>

  </dependencies>

  <build>

    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->

      <plugins>

        <plugin>

          <artifactId>maven-clean-plugin</artifactId>

          <version>3.0.0</version>

        </plugin>

        <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->

        <plugin>

          <artifactId>maven-resources-plugin</artifactId>

          <version>3.0.2</version>

        </plugin>

        <plugin>

          <artifactId>maven-compiler-plugin</artifactId>

          <version>3.7.0</version>

        </plugin>

        <plugin>

          <artifactId>maven-surefire-plugin</artifactId>

          <version>2.20.1</version>

        </plugin>

        <plugin>

          <artifactId>maven-jar-plugin</artifactId>

          <version>3.0.2</version>

        </plugin>

        <plugin>

          <artifactId>maven-install-plugin</artifactId>

          <version>2.5.2</version>

        </plugin>

        <plugin>

          <artifactId>maven-deploy-plugin</artifactId>

          <version>2.8.2</version>

        </plugin>

      </plugins>

    </pluginManagement>

  </build>

</project>
Welcome to Project Buckets, where you can post projects code/questions,download projects code and receive comments from other members of the community.
WANTED TO SELL COMPLETE WEBSITE WITH DOMAIN, If anyone interested to purchase this site please contact on Email-projectbuckets789@gmail.com for further discussion.
...