Print Page | Close Window

Question marks ??? in BatchPDF-file

Printed From: www.exp-systems.com
Category: PDF reDirect
Forum Name: Using PDF reDirect
Forum Discription: Questions and Comments on using PDF reDirect Freeware and Pro
URL: http://www.exp-systems.com/Forum_exp/forum_posts.asp?TID=364
Printed Date: 23 Nov 24 at 8:04AM


Topic: Question marks ??? in BatchPDF-file
Posted By: rumoldus
Subject: Question marks ??? in BatchPDF-file
Date Posted: 08 Nov 07 at 3:58PM
Hi,
I am printing to a BATCHPDF-printer from Excel. I do this from VBA, but when I print manually to BATCHPDF printer the same thing happens.
In the page center of the first page, 3 question marks appear of a bigger font than anything on the Excel page. It looks as if a stamp is added to the page, but it isn't, as far as I can see. The 2nd page is OK.
When I print to PDF Redirect printer, there is no problem at all.
While writing this I just thought of printing from Word to BATCHPDF and the same thing appears. So it is not in the source file, not in Excel or in in my code, but in BATCHPDF. But all stamps are clear. Where do I look ?

Kind regards
Rumoldus





Replies:
Posted By: Michel_K17
Date Posted: 09 Nov 07 at 12:10AM
Hi,

   The question marks are very weird indeed. Do they also appear if you use the sample Word or Excel files that I created with the example code? Please check that (ie my sample code), which would allow us to see if there is a difference between your code and mine.

    Best regards,



-------------
Michel Korwin-Szymanowski
EXP Systems LLC


Posted By: rumoldus
Date Posted: 09 Nov 07 at 4:34AM
The problem has disappeared.
In code (mostly copy of your code) there is a section
        ' Set the PDF Output Settings
        '-------------------------------
        .Settings_Picture_Quality = QUALITY_GOOD 
             ....
        .Settings_Stamps = ""
                                                ' List of stamps to apply separated by ", " ("" if none)
I had put some strings in there ("confidential", "draft") for later use; Appearantly this works differently than I thought.
Thanks again.
Rumoldus


Posted By: Michel_K17
Date Posted: 10 Nov 07 at 10:22AM
Hi Rumoldus,

    This setting is a reference to a pre-established stamp that you created ahead of time with PDF reDirect Pro in the Preferences >> Stamps screen. The stamps are either a PDF style stamp or a TEXT style stamp. Therefore, what you would need to provide is the name of the stamp file.

    If you want to add a text stamp (also known as a watermark) on your PDF "on-the-fly" through your code, you can use the following command:

    oPDF.Utility_Apply_Text_Stamp

    You can specify the text, color, location, and a URL link if you want. Here are more details:

        ' Sample Code that applies a text stamp to your new PDF
        '------------------------------------------------------
        ' Parameters are:
        '  - Pages: FIRST_PAGE or ALL_PAGES or LAST_PAGE or NEW_PAGE_IN_FRONT or
        '           NEW_PAGE_AT_BACK or SECOND_PAGE_ONWARD or FIRST_TO_SECOND_TO_LAST
        '  - Location: UPPER_LEFT or UPPER_CENTER or UPPER_RIGHTCENTER or
        '              CENTER_STRETCHED or LOWER_LEFT or LOWER_CENTER or LOWER_RIGHT
        '  - Layer: ONTOP or UNDERNEATH
        '           Warning: Powerpoint has an opaque bottommost layer so stamps will never appear unless ONTOP
        '  - WebLink: Hyperlink (http://, https://, ftp://, mailto:) associated with your text
        '             Examples: "http://www.exp-systems.com", or "mailto:test@yahoo.com"
        '  - JavaScript: for experts only. Insert Javascript to turn stamp into a button.
        '  - Text: The text you want to display
        '  - Standard Font: Here are the fonts you can use:
        '      - FONT_COURIER, or FONT_COURIER_BOLD, or FONT_COURIER_BOLD_OBLIQUE, or FONT_COURIER_OBLIQUE
        '      - FONT_HELVETICA, or FONT_HELVETICA_BOLD, or FONT_HELVETICA_BOLD_OBLIQUE, or FONT_HELVETICA_OBLIQUE
        '      - FONT_TIMES, or FONT_TIMES_BOLD, or FONT_TIMES_OBLIQUE, or FONT_TIMES_BOLD_OBLIQUE
        '  - Text Style: Select Style of Text such as Size, Color and/or Underline.
        '                I have created a few standard constants that you can use, or you
        '                can make your own. Colors are given in Red/Green/Blue
        '      - UNDERLINE = ""
        '      - SIZE10 = "[S=010]"               << S = "Text Size"
        '      - SIZE12 = "[S=012]"               << S = "Text Size"
        '      - SIZE14 = "[S=014]"               << S = "Text Size"
        '      - BLACKTEXT = "[T=000,000,000]"    << T = "Text Color"
        '      - YELLOWBACK = "[B=255,255,000]"   << B = "Back Color"
        '

        TempBool = oPDF.Utility_Apply_Text_Stamp(FIRST_PAGE, _
                                            LOWER_LEFT, _
                                            ONTOP, _
                                            "http://www.exp-systems.com", _
                                            "", _
                                            "Your Text Here", _
                                            FONT_HELVETICA, _
                                            UNDERLINE & SIZE12 & BLACKTEXT & YELLOWBACK)

    I believe that is what you were looking for.

    Cheers!




-------------
Michel Korwin-Szymanowski
EXP Systems LLC



Print Page | Close Window