<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help needed on using a jar file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256455#M38829</link>
    <description>I have downloaded a jar file PDFBOX to use to get information from some PDF Files which are simple text files. 
&lt;BR /&gt;I created a tLibraryload on my job and selected the pdfbox-app-1.3.1.jar in the basic settings for the library. 
&lt;BR /&gt;I cut and pasted the example code from the PDFBOX tutorial to a tJava using the OnsubJobok connector 
&lt;BR /&gt; 
&lt;A href="http://pdfbox.apache.org/userguide/cookbook/creation.html#CreateBlankPDF" target="_blank" rel="nofollow noopener noreferrer"&gt;http://pdfbox.apache.org/userguide/cookbook/creation.html#CreateBlankPDF&lt;/A&gt; 
&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;document = new PDDocument(); 
&lt;BR /&gt; PDPage page = new PDPage(); 
&lt;BR /&gt; document.addPage( page ); 
&lt;BR /&gt;PDFont font = PDType1Font.HELVETICA_BOLD; 
&lt;BR /&gt;PDPageContentStream contentStream = new PDPageContentStream(document, page); 
&lt;BR /&gt;contentStream.beginText(); 
&lt;BR /&gt; contentStream.setFont( font, 12 ); 
&lt;BR /&gt; contentStream.moveTextPositionByAmount( 100, 700 ); 
&lt;BR /&gt; contentStream.drawString( "Hello World" ); 
&lt;BR /&gt; contentStream.endText(); 
&lt;BR /&gt;contentStream.close(); 
&lt;BR /&gt;document.save( "Hello World.pdf"); 
&lt;BR /&gt;when I run this 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; PDDocument cannot be resolved to a type 
&lt;BR /&gt; PDPage cannot be resolved to a type 
&lt;BR /&gt; PDPage cannot be resolved to a type 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; PDFont cannot be resolved to a type 
&lt;BR /&gt; PDType1Font cannot be resolved 
&lt;BR /&gt; PDPageContentStream cannot be resolved to a type 
&lt;BR /&gt; PDPageContentStream cannot be resolved to a type 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; connecting to socket on port 3865 
&lt;BR /&gt; connected 
&lt;BR /&gt; disconnected 
&lt;BR /&gt; at debit_cards.pdftest_0_1.pdftest.tLibraryLoad_1Process(pdftest.java:301) 
&lt;BR /&gt; at debit_cards.pdftest_0_1.pdftest.runJobInTOS(pdftest.java:566) 
&lt;BR /&gt; at debit_cards.pdftest_0_1.pdftest.main(pdftest.java:437) 
&lt;BR /&gt; document.close(); 
&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;Could somebody help on this as soon as possible and explain what tghe problem is and how to fix it. 
&lt;BR /&gt;Many thanks in advance of teh help.</description>
    <pubDate>Sat, 16 Nov 2024 13:11:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:11:41Z</dc:date>
    <item>
      <title>Help needed on using a jar file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256455#M38829</link>
      <description>I have downloaded a jar file PDFBOX to use to get information from some PDF Files which are simple text files. 
&lt;BR /&gt;I created a tLibraryload on my job and selected the pdfbox-app-1.3.1.jar in the basic settings for the library. 
&lt;BR /&gt;I cut and pasted the example code from the PDFBOX tutorial to a tJava using the OnsubJobok connector 
&lt;BR /&gt; 
&lt;A href="http://pdfbox.apache.org/userguide/cookbook/creation.html#CreateBlankPDF" target="_blank" rel="nofollow noopener noreferrer"&gt;http://pdfbox.apache.org/userguide/cookbook/creation.html#CreateBlankPDF&lt;/A&gt; 
&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;document = new PDDocument(); 
&lt;BR /&gt; PDPage page = new PDPage(); 
&lt;BR /&gt; document.addPage( page ); 
&lt;BR /&gt;PDFont font = PDType1Font.HELVETICA_BOLD; 
&lt;BR /&gt;PDPageContentStream contentStream = new PDPageContentStream(document, page); 
&lt;BR /&gt;contentStream.beginText(); 
&lt;BR /&gt; contentStream.setFont( font, 12 ); 
&lt;BR /&gt; contentStream.moveTextPositionByAmount( 100, 700 ); 
&lt;BR /&gt; contentStream.drawString( "Hello World" ); 
&lt;BR /&gt; contentStream.endText(); 
&lt;BR /&gt;contentStream.close(); 
&lt;BR /&gt;document.save( "Hello World.pdf"); 
&lt;BR /&gt;when I run this 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; PDDocument cannot be resolved to a type 
&lt;BR /&gt; PDPage cannot be resolved to a type 
&lt;BR /&gt; PDPage cannot be resolved to a type 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; PDFont cannot be resolved to a type 
&lt;BR /&gt; PDType1Font cannot be resolved 
&lt;BR /&gt; PDPageContentStream cannot be resolved to a type 
&lt;BR /&gt; PDPageContentStream cannot be resolved to a type 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; document cannot be resolved 
&lt;BR /&gt; connecting to socket on port 3865 
&lt;BR /&gt; connected 
&lt;BR /&gt; disconnected 
&lt;BR /&gt; at debit_cards.pdftest_0_1.pdftest.tLibraryLoad_1Process(pdftest.java:301) 
&lt;BR /&gt; at debit_cards.pdftest_0_1.pdftest.runJobInTOS(pdftest.java:566) 
&lt;BR /&gt; at debit_cards.pdftest_0_1.pdftest.main(pdftest.java:437) 
&lt;BR /&gt; document.close(); 
&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;Could somebody help on this as soon as possible and explain what tghe problem is and how to fix it. 
&lt;BR /&gt;Many thanks in advance of teh help.</description>
      <pubDate>Sat, 16 Nov 2024 13:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256455#M38829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on using a jar file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256456#M38830</link>
      <description>I have exactly the same problem.
&lt;BR /&gt;Any advice on this?</description>
      <pubDate>Wed, 29 Jun 2011 10:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256456#M38830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-29T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on using a jar file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256457#M38831</link>
      <description>Did you also add the necessary import statements in the Advanced Settings, either of tLibraryLoad or tJava?</description>
      <pubDate>Thu, 30 Jun 2011 00:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-needed-on-using-a-jar-file/m-p/2256457#M38831</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-06-30T00:02:08Z</dc:date>
    </item>
  </channel>
</rss>

