Announcement

Collapse
No announcement yet.

Autoname PDF-files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Autoname PDF-files

    Can Foxit PDF Creator automatically give the name, on the resulting PDF-file, from the contents of the file?

    My wish is that, when invoices are printed to a PDF printer, the PDF files (invoices) will automatically be named. The name of the file must have an connection to the content. As an example, the customer number and a serial number or invoice number.. When all the invoices are saved in a directory, they must be handled according to the customer database.
    Is that possible with any product from Foxit?

  • #2
    If you're using Foxit PDF Creator, you may modify the registry of Creator to generate PDF documents and store them in a preset directory without pop-up of coverting dialog.
    1) "UseDefFileName" is set to control the output file name. If the value is set "1", Creator will use the original document name as the newly created PDF file name. (E.g. If what I'm trying to convert is "test.doc", the new PDF file name would be "test.pdf");
    2) "Folder" is to assign where the generated PDF documents would be stored. Only when the correct directory has been assigned and "UseDefFileName =1" will the Save Dialog be hidden.

    If you're using Foxit PDF Reader 7.0, you may access this directory: C:\Users\username\AppData\Roaming\Foxit Software\Foxit PDF Creator, find the FoxitReaderPrinterProfile.xml then modify the value of "UseDefFileName", "Overwrite" and "Folder".



    Comment


    • #3
      Unfortunately this doesn't work. My FoxitReaderPrinterProfile.xml reads

      <FXCreatorData><General DefaultFolder="C:\TEMP" Overwrite="1" UseDefFileName="1" OpenFile="0" ImageCompress="1" IgonareBK="0" PDFIndustryStandard="0" PDFVersion="17" ColorSpace="2" DPI="600" DeleteLogFile="0"/>

      (first line only here to save space), but when I print something out of an application on the Foxit printer the dialog box always shows up.

      Comment


      • #4
        Hi Stefan,

        Please send us your FoxitReaderPrinterProfile.xml file so we could take a closer look at it. Please also let us know if you try to print to Foxit PDF Reader Printer or you try to print PDF document to a real printer. Thank you.

        Comment


        • #5
          Hello,

          we print directly to the Foxit PDF Reader Printer. Here's the complete file's content (uploading as an attachment says "Invalid document"):

          <FXCreatorData><General DefaultFolder="u:\KOB\SYSTEM\USER\SU" Overwrite="1" UseDefFileName="1" OpenFile="0" ImageCompress="1" IgonareBK="0" PDFIndustryStandard="0" PDFVersion="17" ColorSpace="2" DPI="600" DeleteLogFile="0"/><Font FontEmbed="2" FontWarnMsg="1" FFaces=""/><Layout UOM="1" PaperSize="9" PaperWidth="2100" PaperLength="2970" Orientation="1" FormName="A4"/><DocumentInfo AddDocInfo="0" DocTitle="" DocSubject="" DocAuthor="Gemeinde Bachhagel" DocKeyWords="" DocCreator=""/></FXCreatorData>

          I've also tried "Folder" instead of "DefaultFolder", but nothing changes. Also experimented with Overwrite and UseDefFileName. Regardless if I print something directly on the "Foxit..." printer or from code; it seems that the file is completely ignored.

          TIA
          Stefan

          Comment


          • #6
            Hi cherry,

            any news on this subject? Don#t want to press, but we have started a project of changing all our PDF reports to Foxit output which hangs now due to the non-documented behaviour. Any help would be very welcome.

            Kind regards
            Stefan

            Comment


            • #7
              Hi Stefan,
              "Foxit reader pops up with the splash screen" while silent printing issue has been confirmed in Foxit Reader 7.0.3/7.0.5 and Our team will change the mechanism in Version 7.0.6 so the Foxit Reader window will be minimized during the printing.

              If you don't want the window been minimized, you may revert back to version 6.2.1. Please email to [email protected]. Attn: Cherie.

              BTW, you may open Foxit Reader->go under "File"->"Print"->choose "Foxit PDF Reader Printer", then go under "General", make the settings you want.
              1) Set Target Folder;
              2) Check "Use default filename and save to default folder"
              3) Check "Save As Default". If you check this option, your settings will be written into
              FoxitReaderPrinterProfile.xml.
              Then you could export the .xml and replace it on other computers running version 6.2.1 if you'd like.

              Comment


              • #8
                Hi cherry,

                thanks for the reply. Unfortunately I don't understand it completely: why is there any splash screen involved? Of course I would highly appreciate if any splash screen would be suppressed in silent print mode, so please stick to this plan for 7.0.6 - but my issue is the file selection dialog which pops up in silent print mode. I understand that by selecting a standard output folder and default filename this default filename should be generated (and overwritten if appropriate) in any case without user interaction, but this doesn't happen.

                BTW: IN A PERFECT WORLD it would be possible to put not only a standard output folder but also a specific output _file name_ into the XML file. This would make software development much easier and more performant because a program would not have to wait for, check and rename the printer driver's output. What we pray for (since years) is simply a way to forward a windows print order on something like the the "Foxit Reader" printer, having full control over the produced filename.

                As it happens so far every product thinks that _users_ use the printer in an interactive mode, entering a desired output file name. But certainly _software developers_ using Foxit would like to control this file name. Foxit would be indeed the first product to offer this option for free, so we would sincerely recommend all our customers to install it on every pc.

                With kind regards
                Stefan Ungemach

                Comment


                • #9
                  Hi Stefan,

                  Sorry for the confusion. Let's just ignore the splash screen. Please first make sure that your Reader/PhantomPDF is of version 7.1.3. Then open the FoxitPrinterProfile.xml (located in "C:\Users\Username\AppData\Roaming\Foxit Software\Foxit PDF Creator\Foxit PhantomPDF Printer or Foxit Reader PDF Printer") with Notepad. If you don't want any dialog during the conversion to PDF, please make sure that you set "DefaultFolder" and set Overwrite="1" UseDefFileName="1" OpenFile="0". With this setting, the PDF document will generated silently.

                  When UseDefFileName="1", PhantomPDF/Foxit PDF Printer will use the original file name as the name for the created PDF document. E.g. Test.doc will have the name Test.pdf after the conversion. In this case, if you'd like to use customer name and serial number or invoice number, you may first rename the original document name.

                  Comment


                  • #10
                    Hi Cherry,

                    thanks for your reply. Unfortunately it seems that the XML is still ignored under Windows 8 (with Windows7 it does the job).

                    We put our defaults in

                    C:\Users\Username\AppData\Roaming\Foxit Software\Foxit PDF Creator\FoxitPrinterProfile.xml

                    This works with the newest Foxit under Windows 7. Under Windows 8 they are ignored. The same happens when I put them, according to your post, in

                    C:\Users\Username\AppData\Roaming\Foxit Software\Foxit PDF Creator\Foxit Reader PDF Printer\FoxitPrinterProfile.xml

                    I can verify that both files are present and filled correctly before the printout starts. This printout is from RRWRUN.EXE which prints to the "Foxit Reader PDF Printer".

                    Please, any other ideas?

                    CU
                    Stefan Ungemach

                    Comment


                    • #11
                      I think the problem which Cherry describes is that if you try to print from some other software and you don't have file name yet, it will still ask you about the name.
                      So suggested would be to add parameter for default file name and skip dialog in case if file name is missing somehow.

                      We are having same problem and sorry to say we had to use PDFCreator which has AutoSave functionality.

                      Comment


                      • #12
                        I'm attempting the same thing, and seeing some odd behavior. I'm running Foxit 7.3.0.1225. I see that when I modify the printing preferences via the 'Devices and Printers' dialog, a file is created/updated in the C:\Users\userName\AppData\Roaming\Foxit Software\Foxit PDF Creator\Foxit PhantomPDF Printer folder. If I manually modify the value for DefaultFolder in that file, it does not immediately update the preference displayed after opening the "Devices and Printers' dialog. However, once I open that dialog, close it and open it again, the new folder name appears. Foxit also does not use the new folder until after this dialog has been displayed. Can you tell me how to have the printing function immediately use the modified DefaultFolder location?

                        Thanks,
                        Jim

                        Comment


                        • #13
                          Originally posted by stefan.ungemach View Post
                          Hi Cherry,

                          thanks for your reply. Unfortunately it seems that the XML is still ignored under Windows 8 (with Windows7 it does the job).

                          We put our defaults in

                          C:\Users\Username\AppData\Roaming\Foxit Software\Foxit PDF Creator\FoxitPrinterProfile.xml

                          This works with the newest Foxit under Windows 7. Under Windows 8 they are ignored. The same happens when I put them, according to your post, in

                          C:\Users\Username\AppData\Roaming\Foxit Software\Foxit PDF Creator\Foxit Reader PDF Printer\FoxitPrinterProfile.xml

                          I can verify that both files are present and filled correctly before the printout starts. This printout is from RRWRUN.EXE which prints to the "Foxit Reader PDF Printer".

                          Please, any other ideas?

                          CU
                          Stefan Ungemach
                          stefan.ungemach ,If you are still using our Foxit Reader,please help to upgrade to latest version 7.3.4 to see if the settings that you have made in "FoxitPrinterProfile.xml"will be applied when you try to create PDF files under windows8? You may download the latest version of Foxit Reader from our official download center below:
                          Foxit PDF software download and cloud service trial center. Free download PDF software for Windows, Mac, iOS, or Android to view, convert & edit PDF files.

                          If there is still any problem,please help to send us screenshots of your settings in "FoxitPrinterProfile.xml" and some screenshots which could illustrated the issue to [email protected](indicate this thread link when you mail to us),so that we will go in-depth into this issue.

                          Comment


                          • #14
                            thanks, your post help me a lot

                            Comment

                            Working...
                            X