MapInfo Pro Developers User Group

Expand all | Collapse all

Adobe PDF printing

  • 1.  Adobe PDF printing

    Posted 01-13-2020 16:55
    Edited by Michel Li 01-13-2020 16:59
    I am trying to print a layout window to Adobe PDF and I noticed when printing I see some white lines in the pdf itself. I don't see it in the Layout window though.
    I use this in Mapbasic.

    Set Window FrontWindow()  Printer
    Printer Name "Adobe PDF" Orientation Portrait Copies 1 Papersize 1

    Does anyone know why?



    ------------------------------
    Michel Li
    Programmer
    GEOSEARCH LLP
    Austin TX
    ------------------------------


  • 2.  RE: Adobe PDF printing

    Pitney Bowes
    Posted 01-14-2020 10:42
    Hi Michel,

    Are you viewing this PDF in Adobe Acrobat? I'm using Adobe Acrobat Reader DC, and it has multiple display settings that can alter the appearance of your PDF file.

    First, you should try setting the viewing zoom to 100% / Actual size.

    Next, you can alter some settings in the Edit > Preferences > General dialog, related to Rendering and Resolution. Normally, it is best to set the resolution to Use System Setting if you are producing and viewing the PDF on the same system. Depending on the type of PDF content (raster vs. vector, etc.), you may want to toggle some of the Rendering options on/off.

    I am attaching a screenshot of my Acrobat preferences dialog to show you the settings (but you may need to alter the actual options that are enabled/disabled):





    ------------------------------
    Alicia Levesque
    Pitney Bowes Software
    ------------------------------



  • 3.  RE: Adobe PDF printing

    Posted 01-14-2020 10:52
    Alicia,

    I am using Adobe Acrobat Standard 8.1.  What I am trying to do is when the map layer is created, I will write the code in Mapbasic to print out the map layer to save as pdf file. It was working fine with the old Mapinfo 12.5 but not the Mapinfo 17.

    Thanks
    Michel

    ------------------------------
    Michel Li
    Programmer
    GEOSEARCH LLP
    Austin TX
    ------------------------------



  • 4.  RE: Adobe PDF printing

    Pitney Bowes
    Posted 01-14-2020 12:24
    Would you mind sending me the PDF file? I'd like to try it out and get a better understanding of the behavior.

    Also, is it possible for you to send the data that you use to create the PDF? You can use the Workspace Packager tool to bundle up all of the necessary files (TABs, WOR, etc.)?

    You could either post the files here, or email them directly to me.

    Thanks.

    ------------------------------
    Alicia Levesque
    Pitney Bowes Software
    ------------------------------



  • 5.  RE: Adobe PDF printing

    Posted 01-14-2020 12:46
    Alicia,

    It looks like it is working on MapInfo Pro 2019 and not the version 17. I will let you know if I found any issues with the latest version 2019.

    Thanks,
    Michel

    ------------------------------
    Michel Li
    Programmer
    GEOSEARCH LLP
    Austin TX
    ------------------------------



  • 6.  RE: Adobe PDF printing

    Posted 01-15-2020 09:40

    If it appears again, you can try to change some of Output settings:

    • Subdivide printing

    • Polygon mode

    From the MapInfo>Professional>Documentation folder:

    - MapInfoProfessionalPrintingGuide.pdf

    *********

    Subdivide Printing

    In earlier versions of MapInfo Professional, there was an optional registry setting, called SubdividePrinting, to allow print jobs to be broken into multiple, smaller print requests. This was especially useful if printing large raster/ translucent maps to large paper sizes. Now that option has been added as a preference. The preference is initialized using the registry setting if it existed.

    On the Options menu, point to Preferences and click Output Settings to open the Output Preferences dialog box. On the Printing tab there is a check box for Subdivide Printing. If checked, the print job is broken into multiple smaller print request. If unchecked, the print is done in a single request.

    Polygon Mode Printing

    MapInfo Pro v10.0 introduces a new way of drawing complicated polygons, such as those containing holes or many nodes through a User Interface. This was due to an issue with printing such objects using an Adobe PDF printer driver. It left visible seams and gaps in the image when the PDF was printed. These seams and gaps were not visible on screen nor when printed using other printer drivers.

    Printing with the new method means that large polygons are now rendered as-is not broken into smaller polygons, as the older method does. Additionally, the new method uses different calls that specifically support drawing polygons with holes. The older method manipulates the polygon with holes to draw as a single polygon, which caused seams and gaps to appear in the PDF Because this issue does not affect all users of MapInfo Professional who print maps, we continue to provide the original polygon drawing method.

    Note:

    Polygon Mode may be set for each of three types of drawing: on-screen, printing, and exporting. Select Polygon Mode on the Options menu, point to Preferences and click Output Settings to open the Output Preferences dialog box. Polygon Mode is a check box on the Display, Printing, and Exporting tabs.



    ------------------------------
    Peter Horsbøll Møller
    Distinguished Engineer
    Pitney Bowes Software & Data
    ------------------------------



  • 7.  RE: Adobe PDF printing

    Posted 01-15-2020 11:10
    Thank you Peter. It is very helpful.

    ------------------------------
    Michel Li
    Programmer
    GEOSEARCH LLP
    Austin TX
    ------------------------------