How to read tags from pdf to print in different printers (PCL or PS)

Hello from Spain.. I would apreciate some help who to read tags from pdf to discriminate PDF Production tag for send print PDF to printer job using driver PCL or PS. I get trubles when print PDFs files made by PDFcreator (Ghostscript, intermediate PDF from PS) in PCL job printer. I need to eval tags from PDF for send command line os javascript inside Adobe Acrobat to print in the correct job printer: PCL or PS...
Thanks.

As noted you cannot access the "Tag" of a PDF but you can access the meta data of a PDF and one of the items recorded in the meta data is the "producer". This meta data tag is supposed contain the name of the program that produced the PDF. One can access this through the "info" property or the "metadata" property of the doc object.
var cProducer = this.info.Producer; // get the producer application for this PDF;
console.show();
console.clear();
console.println("This PDF was created by " + cProducer);
Be aware that the user can easily modify the Producer information with Acrobat, JavaScript, or other application after the PDF has been created.

Similar Messages

  • How to read HyperLinks from pdf file??

    hi developer's,
    I am in PDF processing... I am having doubt in that Processing.
    How to read Hyperlinks from PDF file?
    I can able to set the hyperlink.. But i cant able to get the hyperlinks..
    The following example program will set the hyperlink to the PDF file using lowagie API..
    import com.lowagie.text.Anchor;
    import com.lowagie.text.Chunk;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Paragraph;
    import com.lowagie.text.html.HtmlWriter;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class Argu1 {
         public static void main(String[] args) {
              Document document = new Document();
              try {
                   PdfWriter pdf = PdfWriter.getInstance(document,
                             new FileOutputStream("PageLink.pdf"));
    PdfReader pdf_read=new                
                   document.open();
                   document.add(new Paragraph("Hi Everbody....!"));
                   Anchor pdfRef = new Anchor("Click Me");
                   pdfRef.setReference("www.java2s.com");
                   Anchor rtfRef = new Anchor("Touch Me");
                   rtfRef.setReference("www.sun.com");
                   System.out.println(rtfRef.reference());
                   document.add(pdfRef);
                   document.add(Chunk.NEWLINE);
                   document.add(rtfRef);
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              document.close();
    Help me how to read the Hyperlinks from the PDF file using java ...
    Thanks in advance,
    With Regards,
    J.Imran

    Instead of cross-posting unformatted code you could have taken a look at the API, because there you might have come across a method named getLinks...Even though it's not documented, I really suspect that it will return the Hyperlinks on a given page.

  • How to read text from PDF and HTML

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    reading from a file is always the same. using the same strategy used for a .txt will allow you to read a .pdf file.
    Offcourse in itself it will be useless becuase pdf files have a special internal structure.
    html files are identical to txt files.
    What are you trying to accomplisch with the files you are reading ?

  • How to read data from PDF and HTML  file

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    ah crap i could have guessed there would be a crosspost only the forum in where the crosspost is made is abit funny
    To OP: DO NOT CROSSPOST
    http://forum.java.sun.com/thread.jspa?threadID=5267875&tstart=0

  • How to read Hyperlinks in pdf???

    hi developer's,
    I am in PDF processing... I am having doubt in that Processing.
    How to read Hyperlinks from PDF file?
    I can able to set the hyperlink.. But i cant able to get the hyperlinks..
    The following example program will set the hyperlink to the PDF file using lowagie API..
    import com.lowagie.text.Anchor;
    import com.lowagie.text.Chunk;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Paragraph;
    import com.lowagie.text.html.HtmlWriter;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class Argu1 {
         public static void main(String[] args) {
              Document document = new Document();
              try {
                   PdfWriter pdf = PdfWriter.getInstance(document,
                             new FileOutputStream("PageLink.pdf"));
    PdfReader pdf_read=new                
                   document.open();
                   document.add(new Paragraph("Hi Everbody....!"));
                   Anchor pdfRef = new Anchor("Click Me");
                   pdfRef.setReference("www.java2s.com");
                   Anchor rtfRef = new Anchor("Touch Me");
                   rtfRef.setReference("www.sun.com");
                   System.out.println(rtfRef.reference());
                   document.add(pdfRef);
                   document.add(Chunk.NEWLINE);
                   document.add(rtfRef);
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              document.close();
    Help me how to read the Hyperlinks from the PDF file using java ...
    Thanks in advance,
    With Regards,
    J.Imran

    Instead of cross-posting unformatted code you could have taken a look at the API, because there you might have come across a method named getLinks...Even though it's not documented, I really suspect that it will return the Hyperlinks on a given page.

  • Read barcode from pdf

    Hi all,
    Please can any one tell me how to read barcode from pdf in java. This will be very help full for me.
    Thanks,
    Avinash

    Avinash_loves_JAVA wrote:
    Please can any one tell me how to read barcode from pdf in java. This will be very help full for me.JMF doesn't support PDFs or barcode reading.
    If you need further assistance with this issue, you'll need to repost in a generic Java forum, or perhaps do a google search for a barcode-reading library.

  • How remove embedded font from PDF

    When I print to PDF on Mac OS 10.6.8 by default embed fonts to PDF-file. It add unnecessary bites to PDF-file (the file is huge size).
    How to remove this option of fonts embedding? Or how remove embedded font from PDF file?

    After opening dozens and dozens of linked files,I finally found the offending "empty line of text" in one of the AI files I placed in the INDD file. Open > Select All.... then check the font panel. With mixed fonts, it was empty, but if everything was the correct font, it was filled in. It was just one AI file.
    I want to thank you all for your great ideas and for sharing your experience. Onward, now.

  • How do I export from PDF to PPT so that shapes created in Illustrator are editable

    How do I export from PDF to PPT so that shapes created in Illustrator are editable, not just text on top of them? I used the Acrobat XL Pro technique described here (http://www.adobe.com/products/acrobat/pdf-to-powerpoint-pptx-converter.html), to export a graphic I had created in Illustrator and saved as an Adobe PDF file, but shapes are not editable and are fuzzy too. Is there a way to export a complete Illustrator graphic to PowerPoint?

    Thanks Bill. Of course I realize I can insert an Illustrator drawing into a PPT without making it a PDF first. What I’m trying to do is insert a drawing from Illustrator that is still editable in PPT (a client request). Using the Acrobat XL Pro capability shown in this video <http://www.adobe.com/products/acrobat/pdf-to-powerpoint-pptx-converter.html> , only the text is editable in PPT, not shapes created in Illustrator.

  • How can I scan from my HP printer to e-mail on my Chromebook?

    How can I scan from my HP printer to my Chromebook?  

    Hello ermingarde,
    I understand you would like to scan from your HP Printer to your Chromebook. I would love to be able to help you with this, but require a little more information:
    1. What is the exact model number of your Chromebook? Click the link to find out:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00033108&cc=us&dlc=en&lc=en&jumpid=reg_r1002_us...
    I will watch for your reply.
    Thanks in advance,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • How do I convert from PDF to Word step by step instructions needed..am practically computer illiterate

    How do I convert from PDF to Word step by step instructions needed..am practically computer illiterate@

    Ok, fine. That isn't Acrobat, and that's why our instructions weren't much use. (But it's worth saying "I didn't have that option" rather than "it's not converting", we could end up wasting a lot of your time with the wrong stuff!)
    Anyway, the free Adobe Reader can't do this conversion without a subscription called either ExportPDF or PDF Pack. You may have had one in the past. Are you still paying for one?

  • Reading content from PDF to XI

    Hi All,
    Can I know about, is XI capable of reading the content from PDF. As I came to know that we can achieve this with the adapter module can you please ignite me how to do for this or is there any other option other than this way or show me if already any threads or articles are existed?

    Hi,
    Please find some links on Convertion agent which not only convert the PDF documents. it is used to convert PDF, Word Document, HL7 and more...
    pdf files *
    SAP Network Blog: XI: Read data from PDF file in Sender Adapter
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    SAP Network Blog: XI: Generate PDF file out of file adapter
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/43/6d95e0ac846fcbe10000000a1553f6/CMGetStart.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm
    Regards,
    Phani

  • Read Comments from PDF...

    Hello Everyone,
    I need to know that how can we read comments from PDF file programmatically using C++.
    I was thinking was to read from file itself. I thought the PDF file must have some text like "StartComments" and "EndComments". (if we open it in notepad) but didn't found anything like that.
    Any suggestions ?
    Or anyone can refer any free Library which does this thing.
    Thanks
    ...Pankaj

    For API, Application Program Interface, there is the Acrobat SDK forum:
    http://forums.adobe.com/community/acrobat/acrobat_sdk
    For coding in Acorbat JavaScirpt there is ths the Acrobat Scripting forum:
    http://forums.adobe.com/community/acrobat/acrobat_scripting

  • [Urgent] How to read files from different directories?

    I am new to Java Programming, I would like to know how to read files from directories other than the current one? (example as follows)
    ProjectDirectory
    |--MainDirectory
    |--MainProgram.java
    |--SupplementDirectory
    |--SupplementProgram.java
    |--Pictures
    |--Image.gif
    What should I write in the MainProgram.java so that I can use the supplementProgram.java from MainProgram and read the Image.gif file from the MainProgram.java?
    Thanks

    Run through the I/O tutorial here. It should get you up to speed on this sort of thing...

  • How to read data from a CLUSTER STRUCTURE not cluster table.

    Hi,
    how to read data from a CLUSTER STRUCTURE not cluster table.
    regards,
    Usha.

    Hello,
    A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
    Regards,
    Mansi.

  • How to read data from a file that was formatted by excel?

    Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?

    http://jakarta.apache.org/poi/hssf/index.html
    HSSF stands for Horrible Spreadsheet Format, but it still works!

Maybe you are looking for