{"id":87144,"date":"2023-02-28T11:49:00","date_gmt":"2023-02-28T06:19:00","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=87144"},"modified":"2026-06-03T15:00:47","modified_gmt":"2026-06-03T09:30:47","slug":"java-image-to-pdf-converter","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/","title":{"rendered":"Say Goodbye to JPG, Convert to PDF"},"content":{"rendered":"<p>This is a Java project that converts an image to a PDF file using java image to pdf converter. The code uses libraries such as iText to perform the conversion. The build tool for this project is Apache Maven.<\/p>\n<h3>About Java PDF Converter<\/h3>\n<p>The objective of Java PDF Converter project is to provide a simple solution for converting an image to a PDF file using Java and the iText library. By using Maven as the build tool, the project is able to easily manage dependencies and simplify the build process.<\/p>\n<h3>Prerequisites for PDF Converter using Java<\/h3>\n<ul>\n<li>Java Development Kit (JDK) installed<\/li>\n<li>Apache Maven installed<\/li>\n<li>Eclipse Integrated Development Environment (IDE) installed(or your preferred IDE)<\/li>\n<li>Basic knowledge of Java programming<\/li>\n<li>Knowledge of using the Java Swing library<\/li>\n<\/ul>\n<h3>Download Java PDF Converter Project<\/h3>\n<p>Please download the source code of Java PDF Converter project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1jz3vYtyMnWPxXfvY_7unevh3TSRIq3ER\/view?usp=drive_link\"><strong>Java PDF Converter Code<\/strong><\/a><\/p>\n<ul>\n<li>Language used: Java<\/li>\n<li>Coding Tool used: Apache Maven<\/li>\n<li>Type: Desktop Application<\/li>\n<li>Database used: None<\/li>\n<\/ul>\n<h3>A. Creating the project and adding dependencies<\/h3>\n<p>1. Create a new Maven project in Eclipse by navigating to File &gt; New &gt; Project &gt; Maven Project.<br \/>\n2. In the New Maven Project wizard, filter &#8220;quickStart&#8221; select the one displayed in the image below and click Next.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87152 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/project-image-to-pdf-output.webp\" alt=\"project image to pdf output\" width=\"667\" height=\"666\" \/><\/p>\n<p>3. Fill in the Group Id, Artifact Id, and Package name fields, then click Finish.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87153 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/image-to-pdf-output-java.webp\" alt=\"image to pdf output java\" width=\"667\" height=\"666\" \/><\/p>\n<p>4. Open the pom.xml file and add the following dependencies:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;dependencies&gt;\r\n    &lt;!-- https:\/\/mvnrepository.com\/artifact\/com.itextpdf\/itext7-core --&gt;\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;com.itextpdf&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;itext7-core&lt;\/artifactId&gt;\r\n    &lt;version&gt;7.2.5&lt;\/version&gt;\r\n    &lt;type&gt;pom&lt;\/type&gt;\r\n&lt;\/dependency&gt;\r\n\r\n  &lt;\/dependencies&gt;\r\n\r\n<\/pre>\n<p>5. Save the pom.xml file. Maven will automatically download and install the required dependencies.<br \/>\n6. In Eclipse, right-click on the project, then select New &gt; Class.<br \/>\n7. Give the class a name (e.g. ImageToPDFConvertor)<\/p>\n<h3>B. Creating the project<\/h3>\n<h4>Steps to Create PDF Converter using Java<\/h4>\n<p>Following are the steps for developing the Java PDF Converter project:<\/p>\n<p><strong>Step 1: Importing Libraries<\/strong><br \/>\nThe first step in this tutorial is to import the required libraries.<br \/>\nThe following libraries are required to convert an image to a PDF document:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/ Import required packages\r\npackage com.TechVidvan;\r\n\r\n\/\/ Import required libraries\r\nimport java.awt.EventQueue;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JLabel;\r\nimport javax.swing.JOptionPane;\r\nimport javax.swing.filechooser.FileNameExtensionFilter;\r\nimport javax.swing.JButton;\r\nimport java.awt.event.ActionListener;\r\nimport java.awt.event.ActionEvent;\r\nimport javax.swing.JFileChooser;\r\nimport java.io.File;\r\nimport java.io.FileOutputStream;\r\nimport com.itextpdf.io.image.ImageDataFactory;\r\nimport com.itextpdf.kernel.geom.PageSize;\r\nimport com.itextpdf.kernel.pdf.PdfDocument;\r\nimport com.itextpdf.kernel.pdf.PdfWriter;\r\nimport com.itextpdf.layout.Document;\r\nimport com.itextpdf.layout.element.Image;\r\n\r\n<\/pre>\n<p><strong>Step 2: Creating a Java Class<\/strong><br \/>\nNext, create a Java class named ImageToPDFConvertor to convert the image to a PDF document. In the class, create a frame using the Java Swing library and set its properties.<\/p>\n<p><strong>Step 3: Initializing the Frame and its Components<\/strong><br \/>\nIn the ImageToPDFConvertor class, create a method named initialize to initialize the frame and its components. In this method, create two labels input_label and output_label to display the input and output files, respectively.<\/p>\n<p><strong>Step 4: Selecting Input File<\/strong><br \/>\nCreate a button named input_button with an action listener to select the input file. In the action listener, create a file chooser dialog box to select the input file. Filter the file chooser dialog box to show only image files such as jpeg, png, and jpg. Get the selected file and set the input_label to the selected file&#8217;s absolute path.<\/p>\n<p><strong>Step 5: Selecting Output File<\/strong><br \/>\nCreate a button named output_button with an action listener to select the output file. In the action listener, create a file chooser dialog box to select the output file. Get the provided file name and set the output_label to the file name.<\/p>\n<p><strong>Step 6: Converting Image to PDF<\/strong><br \/>\nCreate a button named convert_button with an action listener to convert the image to a PDF document. In the action listener, use the iText library to create a new PDF document with the provided file name. Add the image to the PDF document using the ImageDataFactory class and close the document.<\/p>\n<p><strong>Step 7: Displaying Success Message<\/strong><br \/>\nAfter converting the image to a PDF document, display a success message using the JOptionPane class.<\/p>\n<p><strong>Step 8: Running the Application<\/strong><br \/>\nFinally, create a thread to run the application in the main method of the ImageToPDFConvertor class and make the frame visible.<\/p>\n<p>Here is the complete code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/ Import required packages\r\npackage com.TechVidvan;\r\n\r\n\/\/ Import required libraries\r\nimport java.awt.EventQueue;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JLabel;\r\nimport javax.swing.JOptionPane;\r\nimport javax.swing.filechooser.FileNameExtensionFilter;\r\nimport javax.swing.JButton;\r\nimport java.awt.event.ActionListener;\r\nimport java.awt.event.ActionEvent;\r\nimport javax.swing.JFileChooser;\r\nimport java.io.File;\r\nimport java.io.FileOutputStream;\r\nimport com.itextpdf.io.image.ImageDataFactory;\r\nimport com.itextpdf.kernel.geom.PageSize;\r\nimport com.itextpdf.kernel.pdf.PdfDocument;\r\nimport com.itextpdf.kernel.pdf.PdfWriter;\r\nimport com.itextpdf.layout.Document;\r\nimport com.itextpdf.layout.element.Image;\r\n\r\n\/\/ Create a class ImageToPDFConvertor\r\npublic class ImageToPDFConvertor {\r\n\r\n  private JFrame frame;\r\n\r\n  \/**\r\n   * Launch the application.\r\n   *\/\r\n  public static void main(String[] args) {\r\n    EventQueue.invokeLater(new Runnable() {\r\n\r\n      \/\/ Create a new thread\r\n      public void run() {\r\n        try {\r\n          ImageToPDFConvertor window = new ImageToPDFConvertor();\r\n          window.frame.setVisible(true);\r\n        } catch (Exception e) {\r\n          e.printStackTrace();\r\n        }\r\n      }\r\n    });\r\n  }\r\n\r\n  \/**\r\n   * Create the application.\r\n   *\/\r\n  public ImageToPDFConvertor() {\r\n    initialize();\r\n  }\r\n\r\n  \/**\r\n   * Initialize the contents of the frame.\r\n   *\/\r\n\r\n  \/\/ Create a method initialize to initialize the frame and its components\r\n  private void initialize() {\r\n    \r\n    \/\/ Create a new frame and set its properties\r\n    frame = new JFrame();\r\n    frame.setBounds(100, 100, 491, 231);\r\n    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n    frame.getContentPane().setLayout(null);\r\n    \r\n    \/\/ Create a label for input file\r\n    final JLabel input_label = new JLabel(\"Input File\");\r\n    input_label.setBounds(29, 29, 271, 24);\r\n    frame.getContentPane().add(input_label);\r\n    \r\n    \/\/ Create a label for output file\r\n    final JLabel output_label = new JLabel(\"Output File\");\r\n    output_label.setBounds(29, 86, 271, 24);\r\n    frame.getContentPane().add(output_label);\r\n    \r\n    \/\/ Create a button for selecting input file\r\n    JButton input_button = new JButton(\"Select Input\");\r\n\r\n    \/\/ Add an action listener to the input button\r\n    input_button.addActionListener(new ActionListener() {\r\n      public void actionPerformed(ActionEvent e) {\r\n\r\n        \/\/ Create a new file chooser\r\n        JFileChooser chooser = new JFileChooser();\r\n\r\n        \/\/ Set the file filter to select only image files \r\n        FileNameExtensionFilter filter = new FileNameExtensionFilter(\r\n    \"Images\", \"jpeg\", \"png\", \"jpg\");\r\n\r\n        \/\/ Show the file chooser dialog\r\n        chooser.setFileFilter(filter);\r\n\r\n        \/\/ Get the selected file\r\n        chooser.showOpenDialog(null);\r\n        File f = chooser.getSelectedFile();\r\n\r\n        \/\/ Set the input label to the selected file\r\n        String filename = f.getAbsolutePath();\r\n        input_label.setText(filename);\r\n      \r\n      }\r\n    });\r\n\r\n    \/\/ Set the bounds of the input button\r\n    input_button.setBounds(328, 28, 136, 29);\r\n    frame.getContentPane().add(input_button);\r\n    \r\n\r\n    \/\/ Create a button for selecting output file\r\n    JButton output_button = new JButton(\"Select Output\");\r\n\r\n    \/\/ Add an action listener to the output button\r\n    output_button.addActionListener(new ActionListener() {\r\n      public void actionPerformed(ActionEvent e) {\r\n\r\n        \/\/ Create a new file chooser dialog box for saving the file\r\n        JFileChooser fileChooser = new JFileChooser();\r\n        int option = fileChooser.showSaveDialog(frame);\r\n\r\n        \/\/ Get the provided file name and set the output label to the file name\r\n        if(option == JFileChooser.APPROVE_OPTION){\r\n        File file = fileChooser.getSelectedFile();\r\n          output_label.setText(file.getAbsolutePath()+\".pdf\");\r\n        }else{\r\n          output_label.setText(\"Save command canceled\");\r\n        }\r\n\r\n      }\r\n    });\r\n\r\n    \/\/ Set the bounds of the output button\r\n    output_button.setBounds(328, 81, 136, 29);\r\n    frame.getContentPane().add(output_button);\r\n    \r\n    \/\/ Create a button for converting the image to PDF\r\n    JButton convert = new JButton(\"Convert to PDF\");\r\n    \r\n    \/\/ Add an action listener to the convert button\r\n    convert.addActionListener(new ActionListener() {\r\n      public void actionPerformed(ActionEvent e) {\r\n\r\n        \r\n        try {\r\n          \/\/ Create a new file with the provided output file name\r\n          File pdfFile = new File(output_label.getText());\r\n\r\n          \/\/ Create a new PDF document with the provided file name\r\n          PdfWriter writer = new PdfWriter(new FileOutputStream(pdfFile));\r\n          PdfDocument pdf = new PdfDocument(writer);\r\n\r\n          \/\/ Create a new document and add the image to the document\r\n          Document document = new Document(pdf, PageSize.A4);\r\n          Image image = new Image(ImageDataFactory.create(input_label.getText()));\r\n          document.add(image);\r\n          document.close();\r\n\r\n          \/\/ Show a message dialog box to indicate that the PDF file has been created successfully\r\n          JOptionPane.showMessageDialog(null, \"PDF created successfully at \" + pdfFile.getAbsolutePath());\r\n          } catch (Exception ee) {\r\n          JOptionPane.showMessageDialog(null, \"An error occurred while converting the image to PDF: \" + ee.getMessage());\r\n          }\r\n      \r\n      }\r\n    });\r\n\r\n    \/\/ Set the bounds of the convert button\r\n    convert.setBounds(169, 145, 152, 40);\r\n    frame.getContentPane().add(convert);\r\n    \r\n    \/\/ Create a label for indicating that the input file should be an image file\r\n    JLabel not_label = new JLabel(\"For image files only\");\r\n    not_label.setBounds(194, 6, 114, 16);\r\n    frame.getContentPane().add(not_label);\r\n  }\r\n}\r\n<\/pre>\n<h3>Java Image to PDF Converter Output<\/h3>\n<p>Output file :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87156 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/image-to-pdf-output-project-1.webp\" alt=\"image to pdf output project\" width=\"1247\" height=\"830\" \/><\/p>\n<p>Project Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87157 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/image-to-pdf-output.webp\" alt=\"image to pdf output\" width=\"493\" height=\"233\" \/><\/p>\n<h3>Summary<\/h3>\n<p>In this Java PDF Converter, a graphical user interface (GUI) is used to convert an image to a PDF document. The iText library is utilized to create the PDF document from the selected image file.<\/p>\n<p>The GUI consists of a JFrame that has two buttons for selecting the input image file and the output PDF file, respectively. The input image file is displayed in a JLabel and the output PDF file is displayed in another JLabel.<\/p>\n<p>The action listeners for the buttons use a JFileChooser to select the files and set the labels to display the file names. The selected image file is then converted to a PDF document using the iText library and saved to the specified location.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a Java project that converts an image to a PDF file using java image to pdf converter. The code uses libraries such as iText to perform the conversion. The build tool for&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":87184,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[4867,4868,4869,4870,4871,4830,4831,4872,4873],"class_list":["post-87144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-basic-java-project","tag-convert-image-to-pdf","tag-convert-image-to-pdf-project","tag-java-pdf-converter","tag-java-pdf-converter-project","tag-java-project","tag-java-project-for-beginners","tag-java-project-for-practice","tag-pdf-converter-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Say Goodbye to JPG, Convert to PDF - TechVidvan<\/title>\n<meta name=\"description\" content=\"Java PDF Converter converts an image to a PDF in Java by using iText. The build tool for this project is Apache Maven.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Say Goodbye to JPG, Convert to PDF - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Java PDF Converter converts an image to a PDF in Java by using iText. The build tool for this project is Apache Maven.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-28T06:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T09:30:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/02\/java-project-image-to-pdf-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Say Goodbye to JPG, Convert to PDF - TechVidvan","description":"Java PDF Converter converts an image to a PDF in Java by using iText. The build tool for this project is Apache Maven.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/","og_locale":"en_US","og_type":"article","og_title":"Say Goodbye to JPG, Convert to PDF - TechVidvan","og_description":"Java PDF Converter converts an image to a PDF in Java by using iText. The build tool for this project is Apache Maven.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2023-02-28T06:19:00+00:00","article_modified_time":"2026-06-03T09:30:47+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/02\/java-project-image-to-pdf-1.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Say Goodbye to JPG, Convert to PDF","datePublished":"2023-02-28T06:19:00+00:00","dateModified":"2026-06-03T09:30:47+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/"},"wordCount":750,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/02\/java-project-image-to-pdf-1.webp","keywords":["basic java project","convert image to pdf","convert image to pdf project","java pdf converter","java pdf converter project","java project","java project for beginners","java project for practice","pdf converter project"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/","url":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/","name":"Say Goodbye to JPG, Convert to PDF - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/02\/java-project-image-to-pdf-1.webp","datePublished":"2023-02-28T06:19:00+00:00","dateModified":"2026-06-03T09:30:47+00:00","description":"Java PDF Converter converts an image to a PDF in Java by using iText. The build tool for this project is Apache Maven.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/02\/java-project-image-to-pdf-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/02\/java-project-image-to-pdf-1.webp","width":1200,"height":628,"caption":"java project image to pdf"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-image-to-pdf-converter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Say Goodbye to JPG, Convert to PDF"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=87144"}],"version-history":[{"count":1,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87144\/revisions"}],"predecessor-version":[{"id":448012,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87144\/revisions\/448012"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/87184"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=87144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=87144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=87144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}