Update version of pdf file in code

I would like to update pdf files from previous versions to 1.8 within code. This would provide users with updated files without having to sit through a long save process.

Brad,
This indeed seems to be the only way to fulfill my need as the PDF files I need to add are pre existing and I'd like the complete report be generated by Diadem 'with one push of a button'.
After some minimal research I think I can get everything working as I would like using Ghostscript to convert any required PDF file to seperate PNG files and then load its pages.
I currently use:
Call ExtProgram ("C:\Program Files\gs\gs9.14\bin\gswin64c", "-dSAFER -dBATCH -dNOPAUSE -r200 -sDEVICE=png16m -dGraphicsAlphaBits=4 -sPAPERSIZE=letter -sOutputFile=D:\Drop\Temp\PNG-%d.png D:\Drop\Temp\PDF.pdf")
 I have tried to get a variables within this command for the input and output files and locations but couldn't get it to work so as is I'll have to shuffle files around to be able to use this rigid approach. If there is any way to get a variable within this code it's use would be a lot easier.
As the external program is called the script continues without knowing when the required info (files) is available. To prevent using a fixed pause time I tried to use a small pause and compare filesize before and after pause to determine if a file is fully available, Unfortunately this doesn't realy work as well as I hoped. Also I guess that used h/w and other processes running at the same time would effect what pause time to  use. I might have to find another way to see if a file is generated completely but I'll quote anyways:
Do
k= FileSize (Wrkdir & "PNG-"&i&".png")
Call Pause (0.3)
Loop Until (k=FileSize (Wrkdir & "PNG-"&i&".png"))
 Although the script now does what it needs to do there is some shuffeling of files required because of the rigidity in the call to the external program and to keep it reliable longer than required pause times are needed.
The realisation of a function that will insert existing Pdf files(pages) is becoming within grasps If I can get around these 2 minor issues.
Tijs

Similar Messages

  • Hello. My safari (and i keep it updated) cannot open PDF files. Should i install Adobe Reader and which version????? I have Mac Book Pro running OS 10.9

    My safari (and i keep it updated) cannot open PDF files.Should i install Adobe Reader and which version????/ I have Mac Book Pro running OS 10.9
    Please help me!!!!

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • It seems like Illustrator may not consistantly be updating the embedded pdf file when we re-save..........

    It seems like Illustrator may not consistently be updating the embedded pdf file when re-saving, even if the embedded illustrator file does. We are seeing a number of issues which seem to suggest this is going on..... I have a file I might be able to share with adobe's developers to really look at this problem. In short this file does not have a client change when viewed in reader or output through Photoshop image processor to generate raster copies, yet when we open the file we see the client changes. I would expect this to be a huge issue..... I have told my team to perform a save-as from now on to avoid what I think is going on-it seems to work.....
    We are using Illustrator  CS5.5 (15.1.0)

    Post Author: fyz
    CA Forum: Exporting
    Hi,
    I think your pdf file is probably damaged. There is a tool called Advanced PDF Repair. I have used it to repair many corrupt PDF files successfully. Its homepage is http://www.datanumen.com/apdfr/  Maybe you can have a try.
    Alan

  • Updating Links in PDF File

    I have a PDF file with over two hundred individual links in it, as well as numerous other PDF files with one or more links in them each. There has been a restructuring of the webserver and I need to make updates to all of the links to reflect this change in the webserver's directory structure.
    Is there a way to search and/or scan a PDF file for a given URL and/or string (e.g., "http://www.websitname.com/directory/directory/filename.htm") and replace it with an updated or new URL or string (e.g., "http://www.websitname.com/directory/new_directory/filename.htm") such that I do not have to open each link separately and update each link manually via the editing tool? It would also be very useful to be able to scan a set of folders for a given link and update those as well. Is either or both of these doable in Acrobat Professional 8?
    I know in older version of CF Studio, you could search a folder of CFM / HTML files and updates any text string "globally". This is needed tool in Acrobat. Does it exist, or is there some sort of utility (Acrobat or third-party) that can do this function?

    Bernd,
    Thanks for the input. That utilities does seem to work from what I could tell. You do not happen to know of something similar that is Windows / GUI based do you and/or perhaps a bit cheaper? For that much I would have hoped for something a bit more user friendly, but then again, it is better than nothing by a long shot.

  • Multiple versions in PDF file

    Hi!
    I look for a way how to create PDF file that contains multiple versions of document. Like there is function "Show signed version" in the Adobe Acrobat, there should be something like "Show version xxx" and "Compare this version to version xxx".
    Is this possible at all?
    It seems to me that PDF format supports versioning internaly, Acrobat can work with versions, but I'm unable to find some description of how to use it.
    Could you please direct me to some source?
    Thank you,
    --- Jaroslav

    Thanks.
    I have finally found that PDF is capable of incremental save. In that case, you can add next version at the end of file. Unfortunately I have not found how to display there incremental update another way than with digital signature.
    --- Jaroslav

  • PDF portfolio - how do i update or replace pdf files in portfolio

    I created a pdf portfolio using the map feature where i drag the pdf's onto the image.
    But now, after i have all the pdf's in the portfolio, i want to replace/update some of the pdf files.
    I can't see an option anywhere to do this?
    Is it possible???
    Thanks

    In the Find window (Ctrl+F) there's an option to replace the searched text.
    This is in Acrobat XI, and there's no Replace All-function.
    On Thu, Jan 15, 2015 at 4:27 PM, claireb88184899 <[email protected]>

  • When we update an existing pdf file occurence of " /Count"  increases.

    We have one pdf file with 20 pages and when we open this file in editplus to see its content it shows "<</Count 20".
    But when we add new page to it or insert from other pdf file the "<</Count" is shown two times with the values 20 and the added page count, i.e. "<</Count 20", "<</Count 22" (if we added to new pages to it.)
    Please confirm why this happening?

    None of this is unusual or unexpected. Read about incremental updates, and object streams.

  • PDF file as code in email message

    Hi,
    I received an email with a PDF file attached. This file I can open on a Windows pc or via webmail perfectly, but in Mail the attachment is part of the message (in code):
    <---start message--->
    "Dear ...,
    Hereby you receive the pdf file...
    %PDF-1.4 %Çåôå› 2 0 obj << /Filter /FlateDecode /Length 851 >> stream xÚå˘_o€6 ÀƒÍOq/ V ˆIJ¤h }Hk']˜&«§,ÀÖa`dÆœ'≈⁄D9ë>‡H{fl“ ÉâÁˇ"  %ñx (et cetera)"
    <---end message--->
    Does anyone know what is causing this? And how can I read/extract the attachment? Thanx in advance!

    Hi,
    I received an email with a PDF file attached. This file I can open on a Windows pc or via webmail perfectly, but in Mail the attachment is part of the message (in code):
    <---start message--->
    "Dear ...,
    Hereby you receive the pdf file...
    %PDF-1.4 %Çåôå› 2 0 obj << /Filter /FlateDecode /Length 851 >> stream xÚå˘_o€6 ÀƒÍOq/ V ˆIJ¤h }Hk']˜&«§,ÀÖa`dÆœ'≈⁄D9ë>‡H{fl“ ÉâÁˇ"  %ñx (et cetera)"
    <---end message--->
    Does anyone know what is causing this? And how can I read/extract the attachment? Thanx in advance!

  • Extract image in PDF file - vba code in Excel

    Hi All,
    I am applying a solution for my company. We have some Front offices which receive customers' requests in paper form.
    We have one Back Office which is receiving the customers' original paper requests from Front Office via courier mail.
    To improve the efficency, I am trying to apply a solution which allow the Front Offices to scan the paper requests into PDF files.
    Those scanned files will be accessed by Back Office to process.
    Given the volume of the requests, it is impossible to open each file in the folder by clicking mouse.
    I have completed the tool (using Excel and vba ) which displays all of the requests (PDF files) as hyperlinks in Excel list.
    The requests are ranked with priority so that the Back Office people know which to process first.
    That solution works well.
    However, Back Office has just requested me to display certain fields in the PDF files as image in Excel's cells so that they can type the information to the system without having to open the PDF files.  The way that the images are displayed on Excel cells is an extraction of part of PDF page.
    I know that in Adobe Reader, I can use my mouse to select part of the area then copy to clipboard, so I hope that we can do the extraction programmatically.
    Could anyone can help me figure out how to implement above extraction solution in Excel vba?
    I am facing 2 concerns:
    1. Acrobat SDK:
    I don't know if my company purchased license of Acrobat SDK or not.  But when I open Excel VB editor, I can see in "Reference" menu the below items:
       + Adobe Acrobat Browser Control Type Library 1.0
       + Adobe Acrobat 9.0 Type Library
       + Acrobat Access 3.0 Type Library
    Are the above enough for my application?
    2. VBA code for extraction of part of PDF files:
    - What should be on the vba code for the extraction?  Which functions I should use?
    Thank you very much
    Cheers

    The functionality that you require is not available to VBA/COM - it is only exposed via C/C++.
    However, you could retrieve the ENTIRE page image to the clipboard and then use whatever VB/VBA methods you choose to grab a section of the image.
    Of course, this all assumes that Adobe Acrobat is installed on each person's computer that will be using the solution since Reader does not have the necessary APIs and Acrobat can't be installed on a server.

  • Opening a PDF file redemption code

    I have recently purchased Lion, and I have been sent a PDF file via email, which contains the redemption code to download the software through the App Store. However, I am unable to open the PDF file, even though I have a password to open the PDF (which was received in separate email). It says the file could not be opened, followed by "it may be damaged or use a file format that Preview doesn’t recognize." How to I open the PDF file?

    It is best you take this up with the Apple Store directly.  This is just a user to user forum.  I've never had the redemption code come via PDF. It could be a spoof meant to phish for your personal information.
    Best to take it up directly with them.  Here's their link:
    Mac App Store billing
    They are usually not as inaccessible as that.

  • I have a macbook pro with the latest update, and any Pdf file I have opened online or downloaded and I try to print it gives me this message Adobe Reader could not open 'April-15th-2014-Messenger.pdf' because it is either not a supported file type or beca

    Adobe Reader could not open 'April-15th-2014-Messenger.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    Most likely http://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html

  • IE9 doesn't reflect updated PDF file but instead reflects from cached version

    First, I apologise if this issue might be discussed/resolved somewhere, but if you have any solutions/ideas to what my issue might be, please help to share. And thank you in advance.
    We have been using/filling PDF forms to generate dynamic FDF data. The URL/path to the PDF file is set inside the text/data of the generated FDF. The PDF file with the FDF data are shown to the browser. But with IE9, the browser always reflects cached version of PDF file, and not the updated version.  This is working fine for years in IE6..IE8, the updated PDF file with the dynamic FDF data are shown correctly. But in IE9, the FDF data is dynamically updated but the PDF file still shows the old version, which I think is from the cache.
    In my testing, either I emptied the IE’s cache or set the Internet Option to check for newer versions of the page then it will reflects the updated PDF File. I tried Ctrl-F5 (to force refresh) too but no avail. I used Acrobat Reader 9 & 11, both having same problem, running on Windows 7.

    Hi Pat. Thanks for your reply. 
    Actually, I already been checking any IE9 options that might be different from IE8, and tried to change "Security" settings also but still can't get the updated PDF file. Maybe you have in mind where I can specifically check and try out?
    I have tried IE10, but also encounter the same problem. sigghhhh
    I have been using this for years but no problem, this PDF/FDF document application is developed/created using Acrobat Professional ver6 and FDFtoolkit.

  • Update placed PDF files to recognize transparency

    I have used Croptima InPlate to create an imposed cut and stack imposition of a large 3800 variable data project. Due to the size of the file, I've only imposed the black plate variable data. I want to use Acrobat's add background tool to add an imposed master graphic of the rest of the file image (the black-only variable text will overlay the other elements).
    Croptima has done a great job with the imposition, however it has placed all the files in the layout with a white backround (not transparent as is resident in the source PDF file. When I try to add the main background in Acrobat the white boxes from the PDF mask out the background image. I can manually remove the boxes in Acrobat one at a time, but doing this across a 6-up, 640 page document makes for quite the undertaking.
    My question is if there's a way in InDesign to update all placed PDF files to display with a transparent background instead of the opaque background.
    The relink feature with import option won't do it document wide, it wants to individually prompt for every graphic and won't retain the page assignments.
    I found a script on the forum which will update each link to a transparent background individually, but I have to manually enter in each page number of the imposed PDF ... also a huge time suck.
    Does anyone know of a way to change the placement properties document-wide of a single, multi-page placed PDF to a transparent background instead of opaque?
    Or... does anyone know how to get Croptima InPlate to place PDF files with a transparent option?
    Thanks in advance.

    I had to chime in:
    First to help out if BLUDVLZ24 would like to test drive Quite Imposing Plus.
    Here is a temporary number so you can test drive it yourself. Just go yo our site www.quite.com and download QIP and use the following Serial number and private code.
    Quite Imposing Plus V1/V2
      Expires end 3/2010  Serial 0783-6227-0032-4682  Code 6826
    Second to help out Mr. Met:
    If you have any trouble understanding Quite Imposing Plus you should have emailed us at [email protected] we would have been happy to help.
    Also, there is a Getting Started tech sheet within the program (instead of reading the entire manual - which may have caused your dislike of QIP)
    Once loaded, please Check out Getting Started tech sheet. Go to our Imposition Control Panel and click on the ? button.....
    then click the Getting Started button.Also, lots of good information on signature setups Step-by-step Instructions and New features.
    Also, take a look at www.quite.com/imposing/techsheet too-it has some other tech step by step sheets - note: cut-stacks tech sheet is there for you to look at. 
    cheers,
    Charles
    Charles James
    Technical/Marketing Director
    Quite Software
    USA
    858.581.9143
    [email protected]
    www.quite.com

  • Cannot open PDF file after update to Acrobat Reader 11.0.1 / 10.1.5

    I receive faxes from a service in the form of PDF files.  Up until today, I have been able to open them with no problem using Acrobat Reader 10.1.4 and lower. 
    Today, I updated Acrobat Reader to 10.1.5, and it's suddenly unable to open any of those files.  I tried uninstalling 10.1.5 and installing 11.0.1, and the same problem exists. 
    I also tried a computer with 11.0.0 that had not yet updated, and it works fine.
    Apparently, it's something about this latest update. 
    The PDF files open in other viewers like Foxit, Sumatra, and Chrome with no problem. 
    Here is the error:
    The offending file can be gotten from here:
    https://dl.dropbox.com/u/24145333/Cisco_fax.pdf
    Any help you can provide is greatly appreciated!
    /Mike

    Apparently I was incorrect on the Cisco box, we are using something different now. We use an Extended application server attached to a Meta Call feature server. This is a known issue for them.
    "We have discovered an issue that means that the format of fax PDFs generated on most versions of Metaswitch EAS is incompatible with the latest Adobe Reader (11.0.01).  This means that when your end users upgrade their Adobe Reader to 11.0.01, they will no longer be able to view faxes received from EAS in PDF format."
    The same is with version 10.1.5. I uninstalled 10.1.5 and reinstalled 10.1.4 and the problem went away. No updates for us for now

  • I need to share a file with sec.(windows based). She uses it all the time. I need to just download updated version every few days. I have an old airport extreme and was hoping to attach an external drive. Will this work?

    I need to download an updated version of a file every few days to use. My secretary  works on the file all the time. I thought i could use my old airport extreme and attach an external HD and set up a network to do just this. At work we alll use pc's. How can i make this work? At the moment we use usb stick to transfer which is getting to be a bit of a pain as the file grows every week. Presently 5GB.

    I thought i could use my old airport extreme and attach an external HD and set up a network to do just this.
    Yes, you can use either the 802.11g or 802.11n AirPort Extreme Base Station (AEBS) to attach an external USB HDD for file sharing. Either AEBS model would allow you to share out this HDD to either Macs or PCs. From the PC, the shared HDD would appear as a network drive which you can map via Windows Explorer.

Maybe you are looking for

  • Error while executing a DTP

    Hi All , I got  an error while executing a DTP. Short Dump analysis points this error. :   DBIF_REPO_SQL_ERROR. Please provide in your valuable inputs to resolve this error. Thank & Regards, Rohit Garg

  • How do I re-install GarageBand on my computer? I had to delete it because of midi driver issues.

    This is extremly frustrating. I was sent the wrong disk for my OSX as well, so I can't even use that disk. I called customer service and was told I had to pay for someone to help me fix this issue.

  • Using Audacity software?

    Anyone know how to rip audio using Audacity if there's no "wave mix" selection from the input source on new versions of the software for Mac?

  • Real time configurations for derivation types in COPA

    We have taken the sample operating concern by going thru the path < IMG Activity: Controlling - operating concern - sap operating concern template >, the Quickstart S-GO operating concern template> and configured the following derivation types by loo

  • PO Deleted in ECS Scenerio in SRM 5.0

    Hi All, How to find the user id of person deleted the PO in ECS Scenario in EBP (SRM5.0).Are there any table to check ?. pls mail me in detail, all the possibilities, Answers will be Rewarded. Thanks in Advance , Gopal