Question on code... I will explain
I am using this code to merge pdf files, it works but now the user wants to choose the order and may only want to merge 2 out of the 3 files, what can I do? Thanks for your help, Doug
package jbook;
import java.io.File;
import oracle.apps.xdo.XDOException;
import oracle.apps.xdo.common.pdf.util.PDFDocMerger;
public class PDFMerger {
public PDFMerger() {
// Output destination of the merged PDF document.
File outFile = new File("c:\\temp\\CSAG.pdf");
// PDF documents to be merged.
File[] inpFiles = new File[3];
inpFiles[0] = new File("c:\\TEMP\\CSAGp1.pdf");
inpFiles[1] = new File("c:\\TEMP\\CSAGp2.pdf");
inpFiles[2] = new File("c:\\TEMP\\CSAGp3.pdf");
// Create PDFDocMerger instance.
PDFDocMerger pdfMerger = new PDFDocMerger(inpFiles, outFile);
// Set the position of the page number
pdfMerger.setPageNumberCoordinates(300, 20);
// Set the font info of the page number
pdfMerger.setPageNumberFontInfo("Helvetica", 10);
// Set the numbering rules
pdfMerger.setPageNumberValue(2, 2);
// Run the merging process.
try {
pdfMerger.process();
} catch (XDOException e) {
e.printStackTrace();
public static void main(String[] args) {
PDFMerger pDFMerger = new PDFMerger();
}
DougBlincoe,
Probably better asked on the BI Publisher Forum, but if they want to merge 2 files, just change the array size to 2 and specify 2 files instead of 3 I guess?
John
Similar Messages
-
HHlo Is that where you are offering to help retrieve the encryption-answer questions and cod have been an accident and do not forget the answers
How to reset your Apple ID security questions
Go to appleid.apple.com and click on the blue button that says 'Manage Your Apple ID'.
Log in with your Apple ID and password. If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email.
Go to the Password & Security section on the left side. Then underneath the security questions click on the link that says 'Forgot your answers? Send reset security info email to [email]'. This will generate an automated e-mail that will allow you to reset your security questions.
If that doesn't work, or there is no rescue email link available, then you will need assistance from Apple Account Security. Follow this procedure:
click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
Next, go to getsupport.apple.com. If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services'.
Choose 'More Products & Services', then 'Apple ID'.
A new page will open. Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
Click the blue 'Continue' button.
Select the contact option that suits your needs best.
The above information quoted with gratitude from TJBUSMC1973, another user in these forums.
Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base before you post a question.
Regards. -
Revision: 12077
Revision: 12077
Author: [email protected]
Date: 2009-11-20 18:16:32 -0800 (Fri, 20 Nov 2009)
Log Message:
Although Spark RichText does not support link formats, modifying compiled FXG to not generate ActionScript code that will cause compile time exceptions.
Removing references to Flex Builder 3 in RPC.
QE notes: N/A
Doc notes: N/A
Bugs:
SDK-24305 - Link format property nodes cause errors on RichText in FXG 2.0
SDK-24322 - A couple references to Flex Builder 3 in Flex 4 LangRef (and code comments)
Reviewer: Deepa
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24305
http://bugs.adobe.com/jira/browse/SDK-24322
Modified Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java -
Dear Sir or Madame,
My name is Vadim. I'm from Russia. I'd like to buy two iPhones 5, 64 GB online, from your official website Apple: for my wife and myself. But I've a question to you. Will it (iPhone 5, 64 GB) work in Russia? How much will they cost for me? And how much will the delivery from America to Russia cost?
Yours sincerely,
Vadim Fedotov.iPhone 5 is not available unlocked in US and
Apple Store online does not ship outside the Country it operates
You are best served waiting for the iPhone 5 to be announced in Russia
through your Apple Approved carriers -
I forgot my Firefox Sync username and password but have the sync code. Will that allow me to recover my bookmarks? I don't have access to the original computer in sync.
You need at least the email address that you used to create that account to reset the password.
*https://services.mozilla.com/ -
i can not get ipod touch to turn on. it shows picture to connect to itunes but it says to enter pass code but will not gogto screen to enter code. HELP PLEASE
See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once...
Be sure to Follow ALL the Steps... -
TS1292 how to activat a itunes code that will not redem
how to activat a itunes code that will not redem
I was having the same problem with a card that I received as a gift. Finally, I realized that it's an APPLE gift card and not an iTunes gift card. They are different and one will not work for another. The Apple card is used for hardware, software, cases, headphones, etc that you can buy in store or online. The iTunes card can only be used for music, apps, videos purchased through iTunes.
But as long as it is in fact an iTunes card, the only other thing I've read about it not activating is to wait a few days and try it again. Sometimes it takes a while for the store where it was purchased from to send the activation info to Apple and read it as a valid code. I guess it doesn't happen instantaneously when scanned at the store. -
Need help with WMI code that will send output to db
'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer
and talks to our server. I also want the code to:
* check the users computer and find all installed patches
* the date the patches were installed
* the serial number of the users computer
* the computer name, os version, last boot up time, and mac address
and then have all this output to a database file. At the command prompt I've tried:
wmic qfe get description, hotfixid
This does return the patch information I'm looking for, but how do I combine that line of code with:
wmic os get version, csname, serialnumber, lastbootuptime
and
wmic nicconfig get macaddress
and then get all this to output to a database file?Thank you for the links. I checked out http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx and
found lots of good information. I also found a good command that will print information to a text file.
Basically what I'm trying to do is retrieve a list of all installed updates (Windows updates and 3rd party updates). I do like that the below code because it gives me the KB numbers for the Windows updates. I need this information so my IT co-workers &
I can keep track of which of our user computers need a patch/update installed and preferably which patch/update. The minimum we want to know is which patches / updates have been installed on which computer. If you wondering why we don't have Windows automatic
updates enable, that's because we are not allowed to.
This is my code so far.
#if you want the computer name, use this command
get-content env:computername
$computer = get-content env:computername
#list of installed patches
Get-Hotfix -ComputerName $computer#create a text file listing this information
Get-Hotfix > 'C:\users\little e\Documents\WMI help\PowerShell\printOutPatchList.txt'
I know you don't want to tell me the code that will print this out to a database (regardless if it's Access or SQL), and that's find. But maybe you can tell me this. Is it possible to have the results of this sent to a database file or do I need to go into
SQL and write code for SQL to go out and grab the data from an Excel file or txt file? If I'm understanding this stuff so far, then I suspect that it can be done both ways, but the code needs to be written correctly for this to happen. If it's true, then which
way is best (code in PowerShell to send information to SQL or SQL go get the information from the text file or Excel file)? -
Is it possible to write a as3 code that will search for particular file in the loacal disk
Is it possible to write a as3 code that will search for particular file in the loacal disk
Not for a web-based design
-
Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work
You will need to contact the movie studio that produced the DVD and ask if they can issue you a new code valid for Canada. Apple cannot help you, and everyone here in these forums is just a fellow user.
Regards. -
WILL NOT TAKE REDEMPTION CODE IT WILL TAKE THE NUMBERS BUT NOT LETTERS WHEN I TYPE IT IN
IWhen i type in my redemption code it will not type the letters only the numbers
Most likely you are trying to enter a redemption code into a serial number entry. Redemption codes are normally used for acquiring the serial number that you would enter.
Redemption Code Help
http://helpx.adobe.com/x-productkb/global/redemption-code-help.html -
I wanna change the Questions, but the support will call me in a wrong number and it won't let me change the number unless i change the country, and i can't change the country because i have a money in my account.. what should i do??
You will need to call tech support or have them call you at http://expresslane.apple.com
Diana -
just purchased blue ray movie from store with a redemption code but will not download with out inserting disc I have a macbook air
I am experiencing the same thing. I have many books that I used to read on my iPad.
Now on iBooks in Mavericks all my books downloaded correctly apart from two which I really want to work (The Lean Startup and Communicating The User Experience).
When I download both using the cloud icon just when it reaches 100% I get this message:
[Insert Book Name] failed to download
To try again, select Check for Available Downloads from the Store menu.
When I check for available downloads it says I have already downloaded all my books.
Anyone know how to fix this.
I do realise that this is only v1 of iBooks so I hope Apple sorts it out soon.
Thanks!!! -
When I click to view my photos a question mark appears and will not let me view my picture. How do I fix this?
Suggests a permissions issue in the Library.
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to check and repair Library permissions -
My question is when you will use the android OS? S...
my question is when you will use the android OS? Stop Symbian & Windows Please
ITs time to use Android OS for NOKIA Company because people now want expandable memory slot (Mirco SD card ) like Andriod Phone and I heard most windows phone does not support Micro SD card and Bluetooth for file transfer is that righti.e. Bluetooth is only there for listening songs not for file transfer)
In case of Symbian OS is actually good OS for low cost model means below 4000 Rs. mobile phones only not for smart phone
Symbian OS doesn't reach to the Android OS because even if Nokia try to do so.. but their prices are more than Android phone with same features and now if we compare Micromax Bolt A51 and new NOKIA ASHA 501 see the difference refer http://www.gsmarena.com/compare.php3?idPhone1=5428&idPhone2=5445 this link
HENCE WITH THIS CONCLUSION I WANT TO TELL NOKIA COMPANY THAT EITHER THEY REDUCE THE PRICE OF THERE SYMBIAN MOBLIE PHONES OR IT'S TIME TO SWITCH TO THE ANDROID OS DUE TO WINDOWS PHONES HAVE MORE DRAWBACKS THAN ANDROID OTHERWISE THERE IS NO FUTURE FOR NOKIA COMPANY TO RAISE AGAIN IN THE CURRENT MARKET
WISH YOU BEST OF LUCK NOKIA COMPANY FOR KEEP CONNECTING PEOPLES......I HOPE YOU CHANGE YOUR MIND...
Maybe you are looking for
-
Receiving an error in Print Report.vi in the Text Report Example.vi
I am trying to run the "Text Report Example.vi" example under Windows XP Professional, MS Office 2003 and LV 6.1 and I get an error in the "Print Report.vi" saying that there is an unknown error (-2147452567). I have searched through the Knowledgebas
-
How can I share a printer with iOS devices?
I'm using a Mini with Lion and would like to share my printer with my iOS devices. They will only see AirPrint devices of which I have none. Is there a way to configure my Mini to make it's shared printer available to my wireless iOS devices?
-
Command-C no longer works in some apps
All of a sudden command-c isn't copying! Choosing Copy from the Edit menu does work, but that's hardly convenient. While this true in almost all apps (Pages, TextEdit, Excel, Outlook, etc.), in one, at least, (MarinerWrite) command-c does work! I've
-
Problems with Adobe Acrobat Professional 7.0
I had a computer crash and had to re-install the Adobe 7.0 software which was an upgrade. It took a call to tech support to get a code to install the upgrade again. Whenever I open the software I get the following windows: FileOpen Th
-
i got a macbook pro with serial number C1*****V30 but i want the full details of the laptop without opening it. how? <edited by host>