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.
Similar Messages
-
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.
MaryHi.
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 -
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.
SenthilHi 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 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 -
About 2 weeks ago, not able to print all pages in a .pdf document stored in a folder (I'm using Windows 7)?
It only prints 1 page then my Brother MFC-J4510DW Printer says "Please put another piece of paper in the feed slot"....the problem is the print setting is set to "manual mode" in Windows 7 rather than "general setting". If you try to change the setting to "general", it will not accept the change.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 -
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 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.
-
Printing selected pages of a PDF to Adobe PDF
I have Acrobat 9, Windows 7, and was happily creating new files from existing PDFs by printing selected pages to Adobe PDF. After having done this a hundred times or so, the process stopped working. I got this message: "When you create a PostScript file you must rely on system fonts and use document fonts. Please go to the printer properties, 'Adobe PDF Settings' page and turn OFF the option 'Rely on system fonts only; do not use document fonts.'" Then I get a message, "The document could not be printed." Then I get a message, "There were no pages selected to print."
First, I wasn't having any problems up to this point; second, I'm not trying to create a postscript file, I'm just trying to print to Adobe PDF (as in, just page 3 of a six-page document."
Any suggestions? Thanks!I downloaded the Arcobat SDK and now learning to use it with its sample.
However, I got stuck when I run the program BasicIacVB.
I got the following error message:
Cannot create ActiveX component.
When running the line
gApp = CreateObject("AcroExch.App")
I run this program on my PC with VS2005 installed.
What extra step do I need to do to use the sdk?
Seems there's no installation package there...
Sorry about my stupid question, I am a total newbie in AcrobatSDK.
P.S. My ultimate goal is to develop the program in VB6 (not using VB2005),
as my client PCs does not (and cannot for some reason) install .net framework. -
Opening a specific page in a pdf
Hi,
I am working on a cross platform project. I can open a specific page in a pdf in windows with the following script using buddy but am so far unable to get this to work on the mac.
on mouseUp me
global gMoviePathName
cursor 0
theApp = baShortFileName(baFindApp("pdf"))
thePath = baShortFileName(gMoviePathName &"resource\myfolder\myfile.pdf")
theAppString = theApp & " /A page=1 " & thePath
theResult = baRunProgram(theAppString, "Normal", FALSE)
end
But even leaving out the attempt to locate the individual page I can't get this code to work.
on mouseUp me
global gMoviePathName
cursor 0
theApp = baShortFileName(baFindApp(".pdf"))
member("text1").text = theApp
thePath = baShortFileName(gMoviePathName &"resource:myFolder:myFile.pdf")
member("text2").text = thePath
theAppString = theApp & thePath
member("text3").text = theAppString
theResult = baRunProgram(theAppString "Normal", FALSE)
member("text4").text = theResult
end
The trace fields seem to return the pathnames ok but the final path returns 0 [error]
Can anyone help?One problem that I see is that the executable file should not have a colon after it:
MyDisc:Applications:Preview.app: myDisc:myFolder1:myFolder2:myFolder3:myFolder4:myFile.jpg
should be
MyDisc:Applications:Preview.app myDisc:myFolder1:myFolder2:myFolder3:myFolder4:myFile.jpg
And another is that it looks like you have missed some punctuation in the baRunProgram command (possibly a copying error)
theResult = baRunProgram(theAppString "Normal", FALSE
should be
theResult = baRunProgram(theAppString, "Normal", FALSE)
One last item is that the Preview.app program probably does not accept the same command line switches as acrobat reader, therefore you are unlikely to make it open to the page you want. You would probably need to make sure that the Mac has acrobat reader on it, and use it to open the file. -
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 -
Was wondering if it was possible for a user to e-mail/submit a specific page of a PDF. For example, I have a 14 page PDF and instead of using a submit button to e-mail the entire PDF, is it possible to e-mail a specific page? Keep in mind, the user on the other end would be using Adobe Reader (as I know this could be easily done if the user has Adobe Acrobat). Also if there was such a function, do you believe it would work on a mobile device or only desktop?
Thanks!!No, not possible with Reader.
-
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 -
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
PrejiHello,
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 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.
Maybe you are looking for
-
3D Function Error in Adobe Photoshop CS6
Hello, i have downloaded the Trial verson of CS 6 Extended to try out the 3D Function. But when i make a new Document with Text in it and klick on 3D the following Error pop up "The Photoshop 3D File can not interpret this file" When i klick maybe 50
-
DrillDown in ALV for fixed values of domains
Hi, i want to create an ALV Grid with an structure that has data elements with domains containing fixed values. As far as i know, in Table Controls and other dynpro fields refering to such domains, the drilldown function is automatically available. I
-
Process request method executing multiple times issue
Hi ALL, In my controller code , process request method is executing multiple times and inserting multiple data into the table, can any body help me how to resolve this issue. I have the below code in my process request: OAApplicationModule am = (OAAp
-
Parameter list not showing all in BIP Report
Hi Expert, I created a parameter list in BI Publisher, type is menu. I can only select on org, if I use "ALL",actually is the default, I want show all the orgs, but it won't show anything. How do I make it work? Thank you!
-
/tmp/mili2d.log writes my tmp folder full which course an esxi outage
Hi Gent`s I hope you could help me further or pointing into the right direction. We had last week an ESXi Server outage which was produced as the /TMP folder was full. I notice now that there is still writing an mili2d.log, which has filled the /TMP