How to print specific pages of a pdf from a vb 2013 program using a print dialog

Hi.  I am using the acrobat sdk to display pdfs from within a vb 2013 program, because the pdfs are large and we have developed indexes on certain columns.  The indexes are stored in SQL tables.  My program has a search window which allows the user to search for a value and displays all the pages on which this value appears in the indexed column in a listbox.  By double-clicking on the desired value in the listbox, the user can go to the selected page and column.  However, the user also needs to be able to highlight one or more of the pages in the listbox and print these pages.  I could do this silently using AcroExchAVDoc.PrintPages, but the user also needs to have a print dialog displayed in order to possibly select a watermark to be printed on the pages.  I also need to default the orientation of the pages depending on the document.
I have reviewed the sdk documentation and also searched in Google and on this site but have not found a way to do this.  Does anyone have a suggestion?  Thanks for any help you can provide.
Mary

Hi.
I did try using the printParams feature and it worked, but since I need to be able to print sets of non-consecutive pages,  I end up having to bring up the print dialogue multiple times and have the user set watermarks each time. 
I decided to just create a new pdf in a temp directory containing the selected pages and open this document in a new window.  This works well and allows them to use the print button on the window to print, bringing up the print dialogue just once.  However, since I need to open the document in a way that shows the print button, I am using OpenInWindowEx, with AV_DOC_VIEW, and the option PDUseBookmarks or PDUseThumbs, rather than PDUseNone.  This displays a toolbar which also includes icons for creating a new pdf, deleting pages, etc.  I do not really want to include these icons on the toolbar.  Is there a way to remove unwanted icons from the toolbar, or make them invisible?
Hope this makes sense.  Thanks for your help.
Mary

Similar Messages

  • Printing specific pages in a PDF

    What is the java code to create a print button to print specific pages in a multiple page PDF file? Help please!

    For more information on the print method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    Note the nStart and nEnd parameters in particular.

  • Link to a specific page in a PDF - from word

    Hey guys
    Possibly a stupid question, however Im not too familiar with acrobat and creating pdfs etc, I have searched and tried whatever answers i've found though.
    What Im needing to do (well, its another user, but they've asked me to fix it for them) is create a link in a word document that will open a pdf at a particular page. This word document will then be exported to PDF and the linking needs to still work. The files will be on the local filesystem (not a web server) and need to open in acrobat reader, not an IE window.
    I can get it to work fine if you manually edit the link in Acrobat professional and tell it to go to a page in another PDF, but when I try adding the link in word it just opens the PDF at page 1.
    What I've tried doing:
    Create a hyperlink in word to c:\test.pdf#page=50
    Create a hyperlink in word to c:\test.pdf#chapter6 (with chapter6 being a destination in the PDF document)
    as above but with file:///c:/test.pdf#page50 and file:///c:/test.pdf#chapter6
    All of these open the PDF but at page 1, not page 50. When i view the link properties in acrobat it shows the action as being "Open a file: c:\test.pdf" but nothing about opening to a specific page.
    The user does not want to edit the resulting pdf in acrobat once it has been created, due to needing to frequently update the word document and re-export to pdf.
    Systems are running WinXP, Office 03, and have tried with Acrobat 6 and 8 (would prefer it to work with version 6, as 8 is just the trial and would prefer not to have to upgrade to get this to work).
    Any help would be much appreciated!

    I have a similar problem I would like to solve. I am also running Word 2003, Windows XP and Acrobat Professional 7.0.
    I can create a hyperlink in a word document to open a separate PDF file.
    I can then use PDF Maker to convert the word document to PDF.
    No problem.
    When I click on the new link in the PDF document it opens the separate file in the same window and the original PDF file is closed.
    I do not want the original file to close.
    When I set up a new link from within Acrobat then I get the option to "Open in new window". This link works the way that I want.
    As there are multiple hyperlinks in the word document, I will need to recreate new links everytime I modify the Word document. This is very time consuming
    Question - how do I get the automatically created link to open in a new window?
    Thanks in advance

  • Opening a specific page of a PDF through web browser not working with IE5.5

    Hi,
    I need an urgent help to reslove the problem below.
    Using Netscape 4.7, When I am trying to open a specific page of
    a PDF file through the web browser using the command below.
    web.show_document('http://oraweb/abc.pdf#page=3','_self');
    This opens the page 3 and then when I give subsequent calls to
    this command with different page nunbers, it opens the related
    pages correctly.
    But when using IE 5.5, the page gets displayed correctly for
    only the firt time. Any calls to the command does not change the
    page at all.
    Could anybody help me to resolve this problem ASAP?
    Thanks
    Preji

    Hello,
    I think this is a problem of IE5.5 with PDF-Files.
    You can find more information at acrobat web site
    (perhaps there is a patch)
    There is a setting in the reader where you can say that
    the reader should start in the web-browser. Turn it off -
    when IE starts downloading a pdf-file you can choose
    acrobat reader for the first time.

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How to print specific page in smartform !

    Hello Friends,
                  I like to print specific page in smartform. for Ex. page 4. But when I give page no. 4, the print preview not showing the exact page.
    Thank you for your time.
    Senthil

    Hi Senthil,
    chk this link you get a brief idea abt Smartforms.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Reward points if you find this helpful
    Regards,
    Harini

  • How to create a hyperlink to a specific page in a pdf

    How can I create a hyperlink to a specific page in a pdf, that is saved on a local drive? If anybody knows the answer, please email me back at [removed]
    Your help will be greatly appreciated.

    You need the original Adobe Acrobat to edit PDF files. The free reader is just for viewing
    http://www.estello.se

  • How to print all pages of a pdf to jpeg images?

    Hi there,
    How can i print the pages of a pdf file to jpeg or any other image format?
    i have a pdf file and adobe acrobat 9 pro. i cannot export as jpeg as there is lock in the pdf file, i want it to be saved as image by printing it.
    could anyone help me. do i need to install any additional software to get this done?
    please let me know.

    Normally you would use the Save As with TIFF or JPeg (I think AA9 now has an export option). If those are greyed out, then it is likely that no copying is set in the security and there is nothing you can do with Acrobat directly to get what you want. In directly, just print to paper and scan back in. As I said, the print permission will still not work with graphics or PDF output if the security for no copying or changing is set -- an obvious attempt to get around the security from the program viewpoint.

  • How to add link to specific page in another PDF

    I'd like to create a link within a PDF to a specific page in a different PDF. As far as I can tell, the Create Link tool will only allow me to open another PDF on page 1. I know you can link to another page in the current PDF, but I need to link to a separate PDF. I have also found info on mechanisms for opening to different pages, but these are for opening using browsers or code.
    So, is it possible to link create a link in a PDF to a specific page in another PDF?
    Thanks for any suggestions.
    - John
    PS - I'm using Adobe 7.0 Professional.

    Try this...
    You can link to a specific page in a specific PDF from a bookmark. You navigate to the new view (page of a PDF) when creating the bookmark.
    When you want to do that with a link (as in selected text in the body of the PDF) you have to do it in two steps. Use any file open to create the link, then edit the properties of the link, select the Action tab, and change the action to Go To A Page View.
    That's how it works in Acrobat 8, but I'm betting it's the same in 7.
    Bear

  • How can we repeat specific page number of pdf file by using FDF Toolkit for Windows?

    how can we repeat specific page number of pdf file by using FDF Toolkit for Windows?

    let's say a registration form, there is only 1 full address provided in my registration pdf, but applicant could have more than 1 address, so i have to make it more flexible to extend the address page no matter how many addresses that applicant provided, i have use adobe acrobat pro to edit the form properties. but dont know how to extend/duplicate a page in felxible times.
    Please advise~ tks so much!!! George

  • How do you link to a specific page in a pdf file?

    Having trouble linking to a specific page in a pdf file, is
    this possible?

    ccpbob wrote:
    > Having trouble linking to a specific page in a pdf file,
    is this possible?
    Hi
    We have a tutorial on this here:
    http://www.communitymx.com/abstract.cfm?cid=A12EF619D9061CD2
    it is a
    commercial tutorial, but not expensive. You could sign up for
    the trial
    - link in my sig - and read it that way, you never may like
    CMX and stay
    a while longer,
    Cheers jojo
    Adobe Community Expert for Dreamweaver 8
    http://www.webade.co.uk
    http://www.ukcsstraining.co.uk/
    Extending Knowledge, Daily.
    http://www.communityMX.com/
    Free 10 day trial
    http://www.communitymx.com/joincmx.cfm

  • How to print specific pages out of a book file

    I've searched around but I cannot find any way of printing specific pages out of a book file. Has anyone got any ideas? I have a 100 page book file with 20 files, and doing print outs of sections is a nightmare. I want to be able to print page 5 out of file A and page 6 out of file B together so I can duplex them. I've tried scripting this but I can't seem to set the page range of the print preferences of the book file.

    [Jongware] wrote:
    I don't think it's possible to set the page range of a Book.printPreferences
    Theoretically it ought to be possible. Can't test for myself now; what does happen when you set the pageRange to overlapping sub-files?
    I've just tried it with CS3. It might have been implemented in later versions.
    In the print Book dialogue the page range field is disabled. You cannot enter anything there.
    If you try to do it with a script it says that printPreferences is read only.

  • Hyperlink from within a Word Document to a specific page within a PDF document.

    I was hoping that someone would be able to assist me.  I would like to create a hyperlink (used as a citation) on my Word document that opens directly to a specified page within a PDF document (possible other word docs and so on, but less
    often).  How do I go about performing this?  Another note, all the documents would reside within a SharePoint site.

    I was hoping that someone would be able to assist me.  I would like to create a hyperlink (used as a citation) on my Word document that opens directly to a specified page within a PDF document (possible other word docs and so on,
    but less often).  How do I go about performing this?  Another note, all the documents would reside within a SharePoint site.
    I am not a Word guru, but I don't think you can run a macro from a hyperlink. But you can create an active X label that runs a macro when clicked. You can use the following macro to go to a specific page in a PDF file.
    Sub OpenPDFPageView(DisplayPage As Integer)
    'In order to use the macro you must enable the Acrobat library from VBA editor:
    'Go to Tools -> References -> Adobe Acrobat xx.0 Type Library, where xx depends
    'on your Acrobat Professional version (i.e. 9.0 or 10.0) you have installed to your PC.
    Dim PDFApp As AcroApp
    Dim PDFDoc As AcroAVDoc
    Dim PDFPageView As AcroAvPageView
    Dim PDFPath As String
    Dim DisplayPage As Integer
    PDFPath = "C:\Users\doudou\documents\test1.pdf"
    'Set the page you want to be displayed
    'DisplayPage = 3
    'Initialize Acrobat by creating App object
    Set PDFApp = CreateObject("AcroExch.App")
    'Set AVDoc object
    Set PDFDoc = CreateObject("AcroExch.AVDoc")
    'Open the PDF
    If PDFDoc.Open(PDFPath, "") = True Then
    PDFDoc.BringToFront
    'Maximize the document
    Call PDFDoc.Maximize(True)
    Set PDFPageView = PDFDoc.GetAVPageView()
    'Go to the desired page
    'The first page is 0
    Call PDFPageView.GoTo(DisplayPage - 1)
    'Set the page view of the pdf
    Call PDFPageView.ZoomTo(2, 50)
    End If
    Set PDFApp = Nothing
    Set PDFDoc = Nothing
    On Error Resume Next
    'Show the adobe application
    PDFApp.Show
    'Set the focus to adobe acrobat pro
    AppActivate "Adobe Acrobat Pro"
    End Sub

  • How do i print to pdf from excel? I am using Windows 8.1 and Office 365 (new)

    How do i print to pdf from excel? I am using Windows 8.1 and Office 365 (new)

    Please see Huge lag in games on bootcamp as a reference. The linked thread is for a GT750m.
    Since there are no mid-2013 Retina models (as per Apple - Support - Technical Specifications), assuming this is your Mac - MacBook Pro (Retina, 15-inch, Late 2013) - Technical Specifications - the same should work for you.

  • Java print service + print specific page

    is there anybody know how to print specific page to the printer in java?
    i am using below code. it able to print any txt file from page 1 to n. it just cannot work on printing on specific page??
    code
    String fileName = "NORMAL.txt";
         DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
    //DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
         FileInputStream pclStream = new FileInputStream(fileName);
         PrintRequestAttributeSet attributes2 = new HashPrintRequestAttributeSet();
         //attributes2.add(new Copies(1));
         Doc doc = new SimpleDoc(pclStream, flavor, null );
         PrintService[] services = PrintServiceLookup.lookupPrintServices( null, attributes2);
         PrintService service = ServiceUI.printDialog(null,50,50,services,services[0],null, attributes2 );
         if(service != null) {
         DocPrintJob dpj = service.createPrintJob();
         dpj.print(doc,attributes2);

    See it!!!
    bye bye
    import javax.print.DocFlavor;
    import java.io.FileInputStream;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.SimpleDoc;
    import javax.print.PrintService;
    import javax.print.ServiceUI;
    import javax.print.Doc;
    import javax.print.PrintServiceLookup;
    import javax.print.DocPrintJob;
    import java.io.File;
    import java.awt.GraphicsConfiguration;
    import java.awt.Rectangle;
    import java.awt.GraphicsEnvironment;
    import java.awt.GraphicsDevice;
    public class Untitled1 {
    public Untitled1() {
    try {
    Rectangle virtualBounds = new Rectangle();
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice gd = ge.getDefaultScreenDevice();
    GraphicsConfiguration gc = gd.getDefaultConfiguration();
    String fileName = "NORMAL.txt";
    DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
    FileInputStream pclStream = new FileInputStream(fileName);
    PrintRequestAttributeSet attributes2 = new HashPrintRequestAttributeSet();
    Doc doc = new SimpleDoc(pclStream, flavor, null );
    PrintService[] services = PrintServiceLookup.lookupPrintServices( flavor, attributes2);
    PrintService service = ServiceUI.printDialog(gc,50,50,services,services[0],flavor, attributes2 );
    if(service != null) {
    DocPrintJob dpj = service.createPrintJob();
    dpj.print(doc,attributes2);
    catch (Exception err) {
    public static void main(String[] args) {
    Untitled1 untitled11 = new Untitled1();
    }

Maybe you are looking for

  • Disk could not be read from

    Suddenly my Ipod will not sync. The error message says "...disk could not be read from or written to..." We tried the HOLD TOGGELING. But that didn't work. It won't let me restore the Ipod either because it says other programs are currently in use. S

  • HT4907 Password Issue when attempting to enable Back to My Mac in iCloud Preferences - HELP?

    Since upgrading to Mountain Lion, I have a problem enabling Back to My Mac. When I try and enable B2MM in the iCloud preferences window, I am asked to enter my Apple ID password. It says the password is incorrect, even though it IS 100% correct. I've

  • Finder crashes trying to access Time Capsule drive

    Hi. I have just set up a Time Capsule 2TB. Time Machine also seems to be working fine - it's backing up right now. However, in Finder, if I click on the new Time Capsule drive that has just been added, Finder crashes. This happens every time I click

  • A Problem with Rolling forecast

    Hi Experts, Currently i have a problem in the Query Designer. Any help or suggestion will be very much appreciated. The system that we have is BI 7. What we want to have is a rolling forecast for the Profit and Loss Account. It means that we will loc

  • Sims 2 and downloading!

    How do I install Sims 2 games on my macbook pro - it's 10.5 leopard. I put the disc in and nothing happens, it makes sounds and all but I clicked the autorun icon and it says it cannot run in DOS mode.....i have no fricken clue what that means. I bou