Create PDF within group of folders?

Hi, everyone
I am wondering if anyone knows of a script to batch convert a folder with subfolders of InDesign files to a PDF?
I have a batch convert script - http://www.kahrel.plus.com/indesign/batch_convert.html
Which helped me package all my files into folders very quickly.
But I now I need to keep a PDF within all the folders.
When I run the script again to create PDFs it only saves them to the root folder.
What I need is to save all the PDFs to the same folder - or ideally to a folder called "Internal Proofs"
For example I have:
2014
>Accounts
>>Direct Debit Mandate
>>>Document Fonts
>>>Links
>>>Direct Debit Mandate.indd
What I need is
>Accounts
>>Direct Debit Mandate
>>>Document Fonts
>>>Links
>>>Internal Proofs
>>>>Direct Debit Mandate.pdf
>>>Direct Debit Mandate.indd
Can anyone help?

Hi,
Sorry, i made a small mistake.
Try now it will create package and pdf.
var selectfolder, root, win = new Window("dialog", 'Package', [0,0,505,110], );
with(win){
  win.panel = add( "panel", [5,5,500,105], undefined );
  with(win.panel){
  win.panel.rootfolder = add( "edittext", [5,3,355,23], undefined );
  win.panel.buttonrootfolder = add( "button", [360,1,485,23], 'Root folder' );
         win.panel.buttonrootfolder.onClick = function (){
                root =Folder.selectDialog("Root folder");
                win.panel.rootfolder.text = root;
  win.panel.packagefolder = add( "edittext", [5,33,355,53], undefined );
  win.panel.buttonpackagefolder = add( "button", [360,32,485,54], 'Package path' );
         win.panel.buttonpackagefolder.onClick = function (){
            selectfolder = Folder.selectDialog ("Package path");
            win.panel.packagefolder.text = selectfolder;
  win.panel.but = add( "button", [315,67,395,89], 'Ok' );
  win.panel.but = add( "button", [400,67,485,89], 'Cancel' );
         win.panel.but.onClick = function (){
         win.close ();
win.center();
win.show();
var myfiles = [];
getsubfolderfiles(root);
for(var i =0;i<myfiles.length;i++)
        var doc = app.open(myfiles[i],false);
        doc.packageForPrint(new Folder(selectfolder + "/"+myfiles[i].name.replace(".indd","")), true, true, false, false, true, false, true);
        var pdfpath = new Folder(selectfolder + "/"+myfiles[i].name.replace(".indd","") + "/Internal Proofs/");
        pdfpath.create();
        doc.exportFile(ExportFormat.PDF_TYPE, new File(pdfpath+"/"+myfiles[i].name.replace(".indd", ".pdf")), false); 
        doc.close();
function getsubfolderfiles(folder)
    var filelist = folder.getFiles();
    for(var i =0;i<filelist.length;i++)
        if(filelist[i] instanceof Folder)
            getsubfolderfiles (filelist[i]);
        else if(filelist[i] instanceof File)
            if(filelist[i].name.indexOf(".indd") > -1){
                myfiles.push(filelist[i]);
Regards,
Chinna

Similar Messages

  • Can not create PDFs from Word

    I've recently purchased Acrobat XI, and am running it on a Windows 7 x64 machine.  I am trying to convert files created in Word 2010.
    Method 1: I choose to print from within Word, choose Adobe PDF, and hit the print button.  The print spooler picks it up, I see the job in the print queue, and I'm asked for a location to save the file.  Once I choose a location the print spooler deletes the print job (as if it were successful) and no file is created.  I have tried this with both .doc and .docx files.
    Method 2: I drag the file from Explorer over on top of a running copy of Acrobat, Word is opened and I'm asked to choose a location to save the file.  Once I do so the Explorer window turns unresponsive, I see a progress bar at the lower right of the Acrobat window that says "Please wait, reading Adobe PDF," and it will sit there for hours with the progress bar almost complete or complete.  The only way to get the Explorer window responsive again is to kill the acrobat.exe process.
    Method 3: I choose Create PDF within Acrobat, point it to the file, and the same problem occurs as with Method 2.
    Changing the destination (from desktop, to documents, to a mapped network drive) has no effect either.  Nor does disabline MSE.
    I"m not sure what to do next to try and get this to work.

    And it started working on its own after Adobe support called me back.
    Go figure.

  • Acrobat Pro 8.1.2 won't create PDFs by itself or within an Office 2007 application. Please help.

    Well, needless to say, everything was working fine when our department was running Acrobat 7 and Office 2003. We made the choice a few weeks ago to upgrade to Office 2007 and Acrobat 8. Both are pushed via Group Policy. One other thing to note, as I think it might be an issue, is that our users have their My Documents redirected to a server. I only mention this, because the Default PDF Output Folder within Acrobat 8 is My Documents.
    Here are the strange things that we've noticed so far:
    1) When you open up the Adobe PDF Properties within Printers and Faxes, the Location displays an "x" followed by two non-standard box characters that I can't seem to write out here. I've uploaded a screen shot if that makes it easier. On a manually installed copy of Acrobat 8, this location box will say My Documents.
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_weird_characters.png
    2) The Adobe PDF printer port grabs LPT1, even if there is another printer already on that port. This behavior is seen when being pushed via GPO. When it's manually installed via the disc, Adobe PDF gets it's own special port "My Documents\*.pdf" with a description of "Adobe PDF Port". When I try to see if I can add such a port on the GPO pushed computers, it doesn't list it as an option. Here again are two screen shots to show what I'm talking about.
    Weird Port:
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_weird_port.png
    Adobe Port:
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_correct_port.png
    Ok, so those are just the oddities seen after performing a GPO installation.
    3) When I right click on a Word 2007 (*.docx) file and choose "Convert to Adobe PDF", it asks me where I want to save the newly created PDF at. It will start converting it, but a few seconds later a balloon error pops up saying that the document failed to print.
    4) When I try to create a PDF via the Word 2007 ribbon add-on for Acrobat, I get the same error.
    I decided to bump a standard user up to administrator of the local machine. All these errors go away and they can create PDFs to their heart's content. As soon as I bump them back down to a standard user, new errors arise.
    5) Now when they try to create a PDF, they get prompted TWICE for the PDF Save As location. When I click on Convert to PDF via the context menu of the Word 2007 file, I get the Adobe PDF Status box, then a few seconds later, I get the Save Adobe PDF File As box. I tell it where to save the PDF to. I then get a second box asking me where to save the PDF to, but it's titled different. This new box is "Save PDF File As". Whatever location I choose there, I get an Access Denied error and an Adobe Printer error that the document has failed to print. I've created screen shots of those as well. Here they are in order:
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_access_denied_01.png
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_access_denied_02.png
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_access_denied_03.png
    http://i57.photobucket.com/albums/g223/daedalus42/adobe_access_denied_04.png
    Does anyone have any solutions whatsoever to fix this? I'm not about to go around to 100 computers and install Acrobat manually when it should work correctly via GPO. If Acrobat doesn't like the fact that a user My Documents is redirected to the server, I noticed that I can change the default PDF file location within the Adobe Customization Wizard. I've not tested that yet to see if it would even help.
    I should mention that I have tried running a repair. Didn't help. Uninstalling and reinstalling via GPO. Didn't help. So, we've installed the Microsoft Office PDF Creator plug-in and that works perfectly. For the time being Acrobat Pro has basically dropped itself down to a reader for all intents and purposes.

    @ Bill@VT: I did try adding a port. That's the problem. When it's on a problematic installation, those special Adobe Port aren't available for me to choose from.
    OK, I have some new information regarding my issue. I've done some more testing and this is what I have learned and how I arrived at that conclusion.
    b It appears to be an issue with the 8.1.2 update.
    1) I manually installed Acrobat 8.0.0 via the executable file I downloaded from Adobe Licensing. I had to go through all the installation prompts, enter the serial key, accept the EULA, etc. I even applied the 8.1.0 update. At this point, everything was fine. Any user on this computer could create PDFs via any method. The Adobe PDF Port was correct and no listed under LPT1 like in the above screen shots. And My Documents was listed as the Default PDF Location, even though users have their My Docs redirected to the server. Like I said, everything worked perfectly.
    2) I decided to install via the Administrative Install Point (AIP) on the server for Acrobat 8.1.2 and the corresponding transform file. After doing this, the problems came back. My first assumption is that the transform file is causing the problem.
    3) To verify that it was in fact the transform file I perform an install from the AIP using the AcroPro.msi file only. No switches and no transform file. Guess what? Problems are still there. So, that wipes out the transform file problem.
    A couple of notes:
    It could be related to the AIP and doing administrative installation upgrades to 8.1.2. My next test is to install 8.0.0 from scratch and manually upgrade that installation to 8.1.0, then 8.1.1, then 8.1.2 to find out when and if it breaks.
    I was able to get a contact number for Adobe's "Volume Licensing" department, so I might end up giving them a call. In fact, even if I narrow down what appears to be the problem, I'm still going to have to give them a call to find out what can be done about it. Because at the moment, the issue is there for 100+ users and something needs to be fixed. All I'm doing at this point is working backwards to figure out what may have caused the problem in the first place.

  • Is there a way to create a PDF within a PDF?

    Hi!
    I am creating a PDF form using Adobe LiveCycle Designer.  The group that I am creating this form for would like to have their customers fill out the form itself but then also have a form that is attached to the original form where the users would give more detailed information or fill out a chart.  They would then like the original PDF form along with the attached PDF form to be emailed to them.  Is the PDF within a PDF possible?  I know you can attach a file as a comment (though for some reason it is not working now - I don't know if it is because my form is now a dynamic PDF) but I don't know if you can attach a file another way then be able to update and save it.
    Thanks~
    Jodi

    It almost sounds like you are trying to do forms in a package format (needs at least AA8 on the user end). You might find a useful example at grants.gov in terms of one of the submission packages. I think you can download those (I generally get them from our contracting office). The basic package had several forms embedded already and there was an option to add more - sure sounds like what you want to do. Whether you need to create such a package in Acrobat or Designer is not something I can answer. Good luck.

  • How to create an Adobe Acrobat 9 PDF within Quark 8.1

    Hi there room...
    I recently upgraded to Snow Leopard, and downloaded the compatible 8.1 Quark update....
    My old method of creating an Adobe PDF from within Quark 98 was to first create a "Printing Output Style" for the document in Quark 8... then going to print... I would select the Adobe Acrobat 9 PPD along with the pre-determided output print style... then going to Print / Save As Postscript File... then distilling and creating my high definition/print ready PDF artwork. Every time I would go to try and select the Acrobat PPD file in Quark it now doesn't appear. I have tried placing it manually in the proper library root folder, quit Quark and then it would appear and I would continue with making my Acrobat files as I have done now for years. But after a system restart this file again disappears. I have found out that this is new in SL and that Adobe now has a new way of creating PDF files within SL.
    Does anyone know how to get a proper relaiable workflow going with Acrobat Distiller and Quark 8.1 ?
    Yours sincerely,
    Anthony MacCarthy
    Irish MacUser & Mac Addict

    Not possible.
    On Jan 27, 2015 7:55 PM, "janelleh21133481" <[email protected]>

  • Create PDF from a Word document within Acrobat

    Hi!
    I am having trouble to create a PDF from a Word document within Acrobat itself, and not by using PDF Maker in Word. When I try to create a PDF using Acrobat, it gives me the choice to choose any Office format file, but Word format doesn't appear. I can convert from an Excel document or a PowerPoint document, but not from a Word document, even if Word 2010 is installed and works perferctly. Why?
    I know I can make a PDF in Word itself by printing to the Adobe PDF printer or by using PDF Maker, but I want to resolve the issue in Acrobat that prevents me to select a Word document in the Create PDF dialog window. You can see the dialog box in the screenshot attached.
    Any help would be appreciated.
    I am using Acrobat X version 10.1.8 on Windows 7 Home Premium and I have Office 2010 installed (with Word 2010).

    Thanks for your reply. PDF Maker works in all of my Office applications. However, in Acrobat, the file formats available for me to create PDF from figure all the Office file formats except the one for Word. This is not normal. At my school, Acrobat X and Office 2007 are installed, and I can use there both PDF Maker in Word and creating PDF from Word document within Acrobat.
    So I think maybe there's a key in my Windows registry that is not set correctly? or something like that. I repaired the installation of Office 2010, and I did so for Acrobat X too, but it doesn't help. Any idea of how I can resolve that?

  • I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description fie

    I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.

    I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.

  • Batch processing / Creating Pdf from multiple folders

    Need to convert some 50 folders each containing 100 jpg files into pdf. Up to now I made this via "Create pdf" each folder separately.. I tried to do this as a whole via "batch processing" but the sequences in there do not foresee the automatic creation of these folders. Any solution to this ?
    Am working with Adobe Acrobat 8.0 Pro and Windows Vista Ultimate
    Thks

    can you move all the folders to a main folder then you can have the batch point to the main folder then create another folder for the pdf to go into.

  • How do I stop iTunes from creating duplicate entries and sub-folders?????

    I am SOOO SICK AND TIRED of iTunes deciding to create sub-folders all the time. I just want to have one big folder and throw all my music into it. I have now spent several weeks trying to re-create my music library after my hard drive crashed, and iTunes keeps messing everything up.
    If I let iTunes do what it wants, I end up with two or three copies of each song. If I try to consolidate my files by deleting extra copies of songs, suddenly iTunes can't "find" anything.
    When I go looking for the "missing" songs, iTunes creates endless fractal layers of folders within folders.
    I AM SICK OF THIS!
    I AM ABOUT TO ABANDON ITUNES AND GO BACK TO WINDOWS MEDIA PLAYER.

    CodeVII wrote:
    Why when you have a large number of files it is better to have them in sub-folders???
    Unchecking both those options still doesn't stop Itunes from putting files in Artist and Album folders..
    The problem I see with putting music files in folders is if you want to move them or change the file properties with just the Operating System they take longer to access. So quicktime seems like something I'd try but....
    I'd like to have the option to have my files in one Folder/Directory.
    iTunes really wants you to use iTunes to manage the iTunes library. If you use the operating system or third party tools to modify tags, iTunes won't detect the change until it has some reason to access the tag, e.g. during playback. In contrast WMP will sniff out changes in your tags and update itself automatically.
    Once you've got your media in iTunes why do you need to access it again at the folder level? As it happens I'm quite obsesive over the structure of my files both logical and physical (see grouping & scripts) but I strongly recommend others to avoid the temptation to waste too much time over the physical layout and leave iTunes to get on with it...
    Many other programs have offered choices for folder structure, invalid character replacement etc. over many years without iTunes joining in. I suspect that the developers of iTunes have long since decided that extra choice in this area isn't necessary since "it just works", though by all means drop a line to iTunes Feedback.
    tt2

  • MSWord items that crash Adobe Acrobat 9.0 add-in (Create PDF function)

    I just want to include a tip I discovered after two days of troubleshooting a colleague's MS-Word (2007 - docx) document. I tried going through the forums to see if anyone else has posted this.
    Obviously, my colleague would try to use the Acrobat add-in within Word through the "Create PDF" button. But doing so causes MS-Word to crash. The crash involves the dialog box for sending an error report to MS (which I cancel).
    I then attempted this on another PC and got the same result.
    Another colleague on the support team suggested trying to convert only sections of the document to try and pinpoint the issue to an element within the document. The result of trial and error pointed me to a particular graphics element on Page 11 of the 46 page document. The graphics element was composed of 4 clock diagrams that were made up of smaller elements (arrowheads and lines for the clock-hands, separate textboxes for the numbers 1 - 12 on each circular clockface, etc.) Deleting the whole graphic allowed the document to be converted to PDF.
    I then reverted to the original document and clicked on the graphic. I was about to investigate if there was a particular element within the grouped graphic that caused the crash, but, by luck, I was able to discover that just by ungrouping the graphic into its elemental components "Create PDF" was able to render the PDF successfully.
    Perhaps this is something to try in the future should anyone run into this issue. I hope this helps someone else.

    It may be something that Adobe did not catch in the way that MS did the graphic processing (and to be sure MS does not always do things by the book). It may have been fixed. I note that you only have AA9.0. The current version is AA9.3.4, so an update might be in order. Potentially that would resolve the problem.
    In any case, I have found the graphic processing done by WORD 2007 to be strange. Taking the same file to WORD 2003 (saving to a DOC format if required) has no problem with the conversion. So there are likely problems from both MS and Adobe.

  • Using Automator to Batch Create PDFs

    I've been trying to find a way to make an Automator workflow that will take the name of a folder and combine it's files into a PDF with as little manual input as possible and have finally figured out how to do so. I've seen others ask how to do this for a while so I wanted to share how I did it.
    Why would you want to create PDFs? If you have scanned books, photos, documents or anything else on your Mac, you can create PDFs out of them. You can then store these in iTunes and either read them using Preview on your Mac or iBooks on your iOS device.
    What this workflow will do:
    Take a folder with images, get the folder's name, and create a PDF of the images with it's name.
    On the next pass of the workflow, it will send the previous folder to the trash.
    Create/have a backup of your files!
    Create a folder somewhere that you can drop your folders in. Name it Automator Dropbox. You can create one wherever you want, but this workflow was created with Automator Dropbox in mind so you'll need to change it as necessary.
    Open Automator and create a new workflow.
    Find Finder Items
    - Search Automator Dropbox
    - [All] of the following are true:
    - [Label] is [Red]
    This will search for any folders that were done before.
    Move Finder Items to Trash
    This will move the previous folder/files to the trash.
    Ask for Finder Items
    - Prompt: [Choose a Folder]
    - Start at: Automator Dropbox
    - Type: [Folders]
    This will ask you to choose the next item to convert to PDF.
    Set Value of Variable
    - Variable: pdfvariable
    This will take the name of the folder you just selected and use it to to rename your PDF.
    Label Finder Items
    - [Red]
    This will mark the folder you're working on for deletion the next time the workflow is ran.
    Get Folder Contents
    This will grab all the image files within the folder so that it can create a PDF out of them.
    Scale Images
    - To size (pixels): 1600
    This will scale the maximum dimension of your image down (or up) to 1600px. I find this to be the sweet spot for performance on the iPad 3, and it looks just fine. If the maximum dimension of your image is lower than 1600px, I'd create a duplicate workflow of this and leave out this step; otherwise you will be upscaling and your image won't look as good. You can also leave this step out if you want your original image size kept, but on the iPad 3 and below there will be a delay going from page to page.
    New PDF From Images
    - Save Output to: [Desktop]
    - Output File Name: tempname
    This will save your finalized PDF to the Desktop. You can change this to whatever you want; I would suggest the Automatically Add to iTunes folder located in [Music > iTunes > iTunes Media > Automatically Add to iTunes]. You will find your PDF in the Books category in iTunes.
    Rename Finder Items
    - [Replace Text]
    - Find: tempname in [Full Name]. Ignore Case checked.
    - Replace: [pdfvariable] (Drag pdfvariable from the variables window into the text field for "Replace". If you don't see the variables, go to "View > Variables."
    You can't just drag the variable into the PDF name field in the step above, so this extra step is necessary. It will rename your PDF with the name of the folder it was created from. It will also add the full file path, which will be taken care of in the next step.
    Rename Finder Items
    - [Replace Text]
    - Find: Users/yourname/Documents/Automator Dropbox in [Full Name]. Ignore Case checked.
    - Replace: LEAVE EMPTY
    This will delete the name of the path from the name of your PDF. If your working folder is not Documents/Automator Dropbox, change it to whatever that is.
    If you're running this workflow on a bunch of folders, you can simply keep your cursor over the workflow's play button and press the right arrow + enter to select the next item in queue. This workflow was made for using a little human interaction as possible, so if anyone has suggestions on how to improve on it please post below.
    One last thing - if you're seeing a red folder when you run the workflow to choose a folder, it's because spotlight hasn't indexed it yet and the workflow could not find it to delete it. Just go on to the next item.

    Someone (not me) has created an automator workflow that does this, using a shell script that runs the "pstopdf" unix command. I just downloaded it and tested it on 10 .eps files. You will need to edit the first automator action in the workflow to find the eps files you want (by default it looks for all eps files on your computer), but once you do that, it works like a charm! Converted my eps files to pdf's. Of course, once they are pdf files, you can use automator to convert them to whatever format you want.
    http://mad-sci.blogspot.com/2007/12/why-i-hate-computers.html
    (link to the actual zip file containing the workflow below)
    http://www.physics.mcgill.ca/~burkes/code/PDFworkflows.zip

  • Add ability to create bookmarks within iOS app

    It would be great to have the ability to create bookmarks within the iOS reader app. That way I can go directly from a PDFs download via website/Dropbox and not have to first edit the document on my computer to add any bookmarks.
    Acrobat Reader for iOS

    To Demo:
    My main email address linked to the mail app in my iPad is with Yahoo.  When I add a test group on my iCloud, my iPad keeps asking for my Yahoo password repeatedly and no sync seems to have taken place.  Can't understand why.  Might have to troubleshoot a little bit more.
    I agree that it is a pain to add a group of names individually and I generally use the Gmail on the notebook for the Gmail app - much easier and faster too.
    It appears that the standard mail app is geared towards individual personal mail rather than for professional use.  Even then...it could have been better.
    Thanks guys for all your input.  Looks like there is no solution within the standard mail/contact apps in the immediate future other than using other apps to supplement.

  • HELP: I need to link a PDF within PDF and be able to open and return to original PDF

    I have a master PDF and have attached 7 supplemental PDF documents. I created "click here" icons and used the steps below so that the linked document would open. The problem is, once I open the supplemental PDF, it closes the original master. I would like to close the linked document and return to the master view. Is there a way to do this?
    Or is there a way to do this from InDesign? I created master file in InDesign and exported as an Interactive PDF.  I created the buttons and linked them to external files. This works great as long as the master PDF and the links are all in one file, but that is a pain to send to a viewer. Ideally, I want to be able to send the master PDF to a viewer and not have to send a links folder. Is there a way to embed the supplemental PDFs into the master so that they are all combined into one file AND have the ability to use buttons to call up one of the attachments, close, and return to the original?
    Thanks in advance!!

    I want to do the same thing that the original poster of this question wants to do. I haven't worked extensively with Acrobat so am finding by trial and error the several ways PDFs within PDFs can be accomplished. I'm using a trial version of Acrobat Pro X and have experimented with three options.
    1 - I've created a Portfolio and am impressed with what that can do, though I think it may be "overkill" for the current size of my project.
    2 - I've also tried creating this project as an index but discovered that the links I'd created in the original docs didn't work when I moved the index and its contents (keeping the file structure the same). I presume this means the links are absolute? I also don't understand how it is that users search a .pdx file, or how to present what I want to be the original opening PDF of indexed docs.
    3 - I've also thought to create one PDF with attached PDFs, so I'd like to have you expand on your comment about creating a master document and attaching documents to it.
    The specifics of my project are these: I have created a master directory that contains approximately 120 links. Most of the links are repeated three times (users can find in the directory the item they need in three different ways: alphabetically, by application, or by module; hence each item listed once in each of three categories). I want to make that directory the "master" PDF that users open first, and then locate within that PDF the 5-8 PDF documents that contain all of the places to which the directory links. I want the "master" directory to be self-contained and completely "portable" as far as all of the documents and links are concerned so that when I make the PDF available from our website users can open the master from there or copy it and have all of the docs they need with all of the links intact. I think I prefer that all docs open in new windows, since returning to the original doesn't seem very user friendly in Acrobat (I like the tabs feature in FoxIt when multiple PDFs are open...).
    I'd like an opinion about the best way to accomplish what I need to do, and am also wondering whether there are other options I am unaware of. BTW, the reason we've decided to document this whole project in PDFs rather than HTML is because this project contains a big number of tables, which do not look consistent across various browsers (i.e., most of our tables look fine in IE and Firefox, but awful in Google Chrome...). In researching my issue on the Acrobat Windows forum I see that rendering tables in Acrobat is also an issue that seems to be unresolved.
    Thank you!

  • Create PDF crashes webapplication

    Hi,
    We have a website that creates PDF-reports using SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) SP1. The site runs on Windows 2003 R2 x64.
    The site (w3wp.exe) crashes every now and then when a report is generated in PDF. We cannot trace it back to specific reports, users or actions. It seems to be random. We don't have this issue on x86-webservers with the same application and CR-version.
    We got a memory dump from one of the crashes. The dump can be found [here|http://www.megaupload.com/?d=ZFVJ7FEZ] (zipped, about 330MB). Microsoft already analyzed this dump and this is the conclusion :
    Here is my analysis: as you already noted, the stack goes from the SAP component to msvcr80, based on the method name (without the private symbols we cannot see the arguments passed etcu2026) it looks like they are initializing something which requires memory to be moved around, hence the call to memmove_s
    0:076> kpL
    Child-SP          RetAddr           Call Site
    00000000`27ceec88 00000000`781b6a70 msvcr80!memcpy(unsigned char * dst = 0x00000000`26bbceb8 "???", unsigned char * src = 0x00000000`26bbceb8 "???", unsigned long count = 0)+0x1ec
    00000000`27ceec90 00000000`41d69db4 msvcr80!memmove_s(void * dst = 0x00000000`00000000, unsigned int64 sizeInBytes = 2, void * src = 0x00000000`000001c2, unsigned int64 count = 0)+0x80
    00000000`27ceecd0 00000000`41d6b2bc crxf_pdf!UXFInitializeW+0x1834
    00000000`27ceed50 00000000`37b2d78f crxf_pdf!UXFGetExportFormatsExW+0x10c
    00000000`27ceeda0 00000000`37da9c1a crpe32!CRPEConnectionInit+0x365df
    00000000`27ceeef0 00000000`37da0b93 crpe32!MWCleanupProcess+0x4ffca
    00000000`27ceefd0 00000000`37da54eb crpe32!MWCleanupProcess+0x46f43
    00000000`27cef720 00000000`37d27bb4 crpe32!MWCleanupProcess+0x4b89b
    00000000`27cef750 00000000`37d38964 crpe32!CRPEConnectionInit+0x230a04
    00000000`27cef820 00000000`37d39a8f crpe32!CRPEConnectionInit+0x2417b4
    00000000`27cefb90 00000000`37d39dac crpe32!CRPEConnectionInit+0x2428df
    00000000`27cefbe0 00000000`37d3a45c crpe32!CRPEConnectionInit+0x242bfc
    00000000`27cefd30 00000000`783917cd crpe32!CRPEConnectionInit+0x2432ac
    00000000`27cefe20 00000000`781337d7 mfc80u!_AfxThreadEntry(void * pParam = 0x00000000`23e01f80)+0x101
    00000000`27ceff20 00000000`78133894 msvcr80!_callthreadstartex(void)+0x17
    00000000`27ceff50 00000000`77d6b71a msvcr80!_threadstartex(void * ptd = 0x00000000`77d6b6e0)+0x84
    00000000`27ceff80 00000000`00000000 kernel32!BaseThreadStart(<function> * lpStartAddress = 0x00000000`00000000, void * lpParameter = 0x00000000`00000000)+0x3a
    First, itu2019s interesting to note that the destination pointer does not look to be valid; the call to msvcr80!memmove_s comes directly from crxf_pdf!UXFInitializeW (there are no u201Chiddenu201D calls in the middle):
    0:076> ln 00000000`41d69db4
    (00000000`41d68580)   crxf_pdf!UXFInitializeW+0x1834   |  (00000000`41d6b1b0)   crxf_pdf!UXFGetExportFormatsExW
    The exception (an Access Violation) is actually thrown in msvcr80 while it is trying to copy the memory as a result of the move call:
    0:076> .exr -1
    ExceptionAddress: 000000007814e38c (msvcr80!memcpy+0x00000000000001ec)
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 0000000000000001
       Parameter[1]: 000000002c78b280
    Attempt to write to address 000000002c78b280
    Also looking at the thread registers confirms that the memory address is not valid:
    0:076> r
    rax=0000000000000009 rbx=0000000000000413 rcx=000000002c78b280
    rdx=ffffffffff9329f0 rsi=0000000000000000 rdi=0000000000000002
    rip=000000007814e38c rsp=0000000027ceec88 rbp=0000000041dd42b0
    r8=0000000005500dc0  r9=0000000005500dc4 r10=000000002728a4c0
    r11=000000002728a4c0 r12=0000000041dd42b0 r13=0000000000000001
    r14=000000002728a4c0 r15=000000002c78b284
    iopl=0         nv up ei pl nz na po nc
    cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010204
    msvcr80!memcpy+0x1ec:
    00000000`7814e38c 8901            mov     dword ptr [rcx],eax ds:00000000`2c78b280=????????
    Unfortunately without the private symbols we cannot see what that memory belongs to.
    Anyway since I have access to all Microsoft private symbols, the fact that I cannot find this specific one I think means this is part of the SAP components. I think we can conclude the problem originates from the crxf_pdf.dll and manifests itself in msvcr80.dll because of some wrong parameter passed into that call.
    All help would be very much appreciated.
    Many Thanks,
    Thomas

    Hi Thomas,
    Since you have RAS available use this code and test again:
    private void ExportToPDFRAS_Click(object sender, EventArgs e)
        //CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
        ISCDReportClientDocument rcd;
        //rpt.Load("c:
    Reports
    Group.rpt");
        rcd = rptClientDoc;
        // Declare a PrintOutputController to allow documents to be exported to PDF
        PrintOutputController rasPrintOutputController;
        CrReportExportFormatEnum rasReportExportFormat;
        CrystalDecisions.Shared.DiskFileDestinationOptions diskOpts = CrystalDecisions.Shared.ExportOptions.CreateDiskFileDestinationOptions();
        diskOpts.DiskFileName = "c:
    reports
    reports1.pdf";
        // Set the CrReportExportFormatEnum to export the report as a PDF file.
        rasReportExportFormat = CrReportExportFormatEnum.crReportExportFormatPDF;
        rasPrintOutputController = rcd.PrintOutputController;
        // Use the Export() method of the PrintOutputController to export the report to a ByteArray.
        ByteArray tempByteArray = rasPrintOutputController.Export(rasReportExportFormat, 0);
        Byte[] byteStreamOutput = tempByteArray.ByteArray;
        System.IO.Stream oStream;
        byte[] byteArray = null;
        oStream = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
        byteArray = new byte[oStream.Length];
        oStream.Read(byteArray, 0, Convert.ToInt32(oStream.Length - 1));
        // this is used to verify the file so I saved it to disk
        System.IO.File.Create(diskOpts.DiskFileName, Convert.ToInt32(oStream.Length - 1)).Close();
        System.IO.File.OpenWrite(diskOpts.DiskFileName).Write(byteArray, 0, Convert.ToInt32(oStream.Length - 1));
        System.IO.File.SetAttributes(diskOpts.DiskFileName, System.IO.FileAttributes.Directory);
        oStream.Close();
    CR requires contiguous memory space so for large reports IIS may not be able to handle cleaning up it's memory fragmentation when objects are freed up. It's a common problem with Java app's also, Java doesn't have a good memory manager either.
    Because of the lack of ability to pass files through Forums I suggest you purchase a support case if you don't have a Support Contract and work with a Support engineer here to debug the problem. We can get the PDB's for those files to you if that helps MS determine what their issue is...
    Thanks
    Don

  • How do I create a Public Group on the Calendar Server?

    How do I create a Public Group on the Calendar Server?
    <P>
    Anyone can create Private Groups or Member Only Groups. You must be given
    administrative rights to create Public Groups on the Calendar Server. The
    Calendar Server Admin (SYSOP) can give anyone rights to create Public Groups by
    using the uniadmrights tool.
    <P>
    Go to /users/unison/bin/
    and run the uniadmrights
    tool. Some sample syntax:
    <P>
    To list all users with administrative rights:<P>
    % uniadmrights -ls -host yourhostname
    <P>
    To give John Smith, a user on node 10000, rights to administer Public Groups:<P>
    % uniadmrights -e "S=Smith/G=John" -add -pgrp -n 10000
    <P>
    In Calendar Server 4.0, you also have the option of using the Admin Server GUI
    to assign Administrative
    rights (instead of using the command-line method) by going to User Management,
    Administration Rights.
    <P>
    With the proper administrative rights, log into the Calendar Client. Go to Options,
    Manage Groups to create a new group. Choose PUBLIC from the dropdown window,
    add your users and/or resources and click OK to create the Public Group which
    can be seen by all users on the local Calendar Server.

    The following is info that I found in another post that I have been trying to follow.
    MrHoffman      New England
    Re: Configure DNS - OS X Server Next Steps
    Feb 13, 2011 6:36 AM (in response to Jimbooooooo)
    You're setting up internal DNS services, you referenced your ISP DNS servers and you should not have, and now those servers have no translations for your hosts. This is a common misconfiguration.
    See [configuring DNS on Mac OS X Server|http://labs.hoffmanlabs.com/node/1436] for how to set up your internal DNS server.
    And if there are any references to your ISP DNS servers here (within your client settings, within your server settings, your Airport settings, etc), then you're usually going to have DNS and connectivity problems. You're running a server now, so you'll be running your own services, and (particularly because of NAT here) referencing only your own DNS server(s).
    You may be setting up external DNS (if and when you need that), but that should happen after you set up your internal DNS. The above article has a link to setting up external DNS, when you get around to that, if/when you need in-bound connections into your LAN.

Maybe you are looking for

  • How to Use 'uid' for AD Users Without Domain Name For User Log in OAM

    How to Use 'uid' for synchronized Active Directory (AD) Users into Oracle Internet Directory (OID) Without Domain Name For User Logins in OIDDAS and OAM We successfully integrated OAM 11g with EBS R12.1.3 Now all the AD user id's stored in fnd_users

  • How does one print just one page of a long PDF file?

    My mac wants to print all of the pages. Don't see a way to print just one page. Since the pages are numbered 6-19 and so on, I can't enter the specific page numbers to be printed.

  • Standby DB on Standard Edition

    Hi, I've just created standby database using Oracle DBMS 10.2.0.2 Standard Edition on IBM AIX 5L. Because it's Standard Edition, I had to use a operating system scripts for log shipping and log apply operations. My log apply script looks like that: #

  • MagSafe catch on fire, can I have a replacement?

    My MagSafe 60W just catch on fire yesterday !! And I'm not sure that the authorized reseller can have a replacement for me (I'm in Thailand and It's an authorized reseller in the north of Thailand) Can anyone help me about this?

  • How to create a table using a variable or flat file ?

    Hello All, I want to create a table in which column names and data type will be read from a flat file or a variable. How can i do this ? Any suggestations are appricaible..... Regards, Ashish