PDF Printing

Print.js was primarily written to help us print PDF files directly within our apps, without leaving the interface, and no use of embeds. For unique situations where there is no need for users to open or download the PDF files, and instead, they just need to print them.

One scenario where this is useful, for example, is when users request to print reports that are generated on the server side. These reports are sent back as PDF files. There is no need to open these files before printing them. Print.js offers a quick way to print these files within our apps.

Example

Add a button to print a PDF file located on your hosting server:


 <button type="button" onclick="printJS('docs/printjs.pdf')">
    Print PDF
 </button>

Result:

For large files, you can show a message to the user when loading files.


 <button type="button" onclick="printJS({printable:'docs/xx_large_printjs.pdf', type:'pdf', showModal:true})">
    Print PDF with Message
 </button>

Result:

The library supports base64 PDF printing:


 <button type="button" onclick="printJS({printable: base64, type: 'pdf', base64: true})">
    Print PDF with Message
 </button>

Result:

HTML Printing

Sometimes we just want to print selected parts of a HTML page, and that can be tricky. With Print.js, we can easily pass the id of the element that we want to print. The element can be of any tag, as long it has a unique id. The library will try to print it very close to how it looks on screen, and at the same time, it will create a printer friendly format for it.

Example

Add a print button to a HTML form:


 <form method="post" action="#" id="printJS-form">
    ...
 </form>

 <button type="button" onclick="printJS('printJS-form', 'html')">
    Print Form
 </button>

Result:

Name:
Email:
Message:

Print.js accepts an object with arguments. Let's print the form again, but now we will add a header to the page:


 <button type="button" onclick="printJS({ printable: 'printJS-form', type: 'html', header: 'PrintJS - Form Element Selection' })">
    Print Form with Header
 </button>

Result:

Image Printing

Print.js can be used to quickly print any image on your page, by passing the image url. This can be useful when you have multiple images on the screen, using a low resolution version of the images. When users try to print the selected image, you can pass the high resolution url to Print.js.

Example

Load images on your page with just the necessary resolution you need on screen:


 <img src="images/print-01.jpg" />

In your javascript, pass the highest resolution image url to Print.js for a better print quality:


 printJS('images/print-01-highres.jpg', 'image')

Result:

Print.js uses promises to make sure the images are loaded before trying to print. This is useful when printing high resolution images that are not yet loaded, like the example above.

You can also add a header to the image being printed:


 printJS({printable: 'images/print-01-highres.jpg', type: 'image', header: 'My cool image header'})

Result:

To print multiple images together, we can pass an array of images. We can also pass the style to be applied on each image:


 printJS({
  printable: ['images/print-01-highres.jpg', 'images/print-02-highres.jpg', 'images/print-03-highres.jpg'],
  type: 'image',
  header: 'Multiple Images',
  imageStyle: 'width:50%;margin-bottom:20px;'
 })

Result:

JSON Printing

A simple and quick way to print dynamic data or array of javascript objects.

Example

We have the following data set in our javascript code. This would probably come from an AJAX call to a server API:


 someJSONdata = [
    {
       name: 'John Doe',
       email: 'john@doe.com',
       phone: '111-111-1111'
    },
    {
       name: 'Barry Allen',
       email: 'barry@flash.com',
       phone: '222-222-2222'
    },
    {
       name: 'Cool Dude',
       email: 'cool@dude.com',
       phone: '333-333-3333'
    }
 ]

We can pass it to Print.js:


 <button type="button" onclick="printJS({printable: someJSONdata, properties: ['name', 'email', 'phone'], type: 'json'})">
    Print JSON Data
 </button>

Result:


We can style the data grid by passing some custom css:


 <button type="button" onclick="printJS({
	    printable: someJSONdata,
	    properties: ['name', 'email', 'phone'],
	    type: 'json',
	    gridHeaderStyle: 'color: red;  border: 2px solid #3971A5;',
	    gridStyle: 'border: 2px solid #3971A5;'
	})">
    Print JSON Data
 </button>

Result:


We can customize the table header text sending an object array


 <button type="button" onclick="printJS({
	    printable: someJSONdata,
	    properties: [
		{ field: 'name', displayName: 'Full Name'},
		{ field: 'email', displayName: 'E-mail'},
		{ field: 'phone', displayName: 'Phone'}
	    ],
	    type: 'json'
        })">
    Print with custom table header text
 </button>

Result:


JSON, HTML and Image print can receive a raw HTML header:


<button type="button" onclick="printJS({
		printable: someJSONdata,
		type: 'json',
		properties: ['name', 'email', 'phone'],
		header: '<h3 class="custom-h3">My custom header</h3>',
		style: '.custom-h3 { color: red; }'
	  })">
	Print header raw html
</button>
 
 

Result:

Fog Map Nova Scotia Now

The Bay of Fundy, with its massive tides, actually sees less fog than the Atlantic coast. The valley’s microclimate—protected by the North and South Mountains—enjoys some of the sunniest summer days in the province. However, fog can funnel into the Digby and St. Mary’s Bay areas.

  • Seasonality
  • Temporal persistence
  • Model evaluation
  • (Include illustrative maps: annual fog probability, seasonal composites—spring/summer/autumn/winter—and a persistence map. In a full paper these figures would be generated from merged datasets described above.)

    Nova Scotia is one of the foggiest regions in Canada, particularly along its coastlines where the interaction of warm air and cold ocean currents creates frequent, thick marine fog. Current Fog Outlook (April 18, 2026)

    Fog activity is currently concentrated along the southern and western shores due to high moisture levels:

    Southwestern Shore: Fog patches are expected to reform this evening (April 18) following early morning dissipation.

    Bay of Fundy: Fog banks are dissipating today but may return overnight as synoptic systems shift.

    Eastern Shore: Conditions are currently clearer, though increasing winds may shift visibility overnight. Regional Fog Climatology

    Fog patterns in Nova Scotia are distinct based on the coastline:

    The Atlantic Coast (Halifax to South Shore): Reports fog an average of 74 days per year. This area is prone to "advection fog," which occurs when warm, moist air moves over the cold Labrador Current.

    Sable Island: Often cited as the windiest and foggiest place in the province, with fog reported nearly 40% of the time in peak summer months (June/July).

    Bay of Fundy: Unique for its rapid fog onset caused by the extreme tidal mixing of cold water with warmer air. How to Access Real-Time Fog Maps

    To monitor fog and visibility across the province, use these official resources: Fog over Sable Island - CMOS BULLETIN SCMO

    Embracing the Mist: A Guide to Nova Scotia’s Foggy Charm If you’ve ever stood on a Nova Scotia pier and watched a wall of white roll in from the Atlantic, you know that fog isn't just weather here—it’s a character in our story. From the historic streets of Lunenburg to the rugged cliffs of the Cabot Trail, the "pea soup" is as much a part of the landscape as the lighthouses that pierce through it. Why So Foggy?

    Nova Scotia’s unique position at the edge of the continental shelf makes it one of the foggiest places on Earth. This is primarily due to advection fog, which occurs when warm, moist air from the Gulf Stream travels over the much colder waters of the Labrador Current. The Fog Map: Where to Find (or Avoid) the Mist

    While fog can appear anywhere in the province, its frequency varies wildly depending on where you are: A Bit More Scotia and A New Plan - Just a Little Further

    Navigating the Mist: Your Ultimate Guide to Nova Scotia’s Fog Map Nova Scotia

    is often called "Canada’s Ocean Playground," but for many travelers, it is also Canada’s misty kingdom. If you have ever looked at a weather forecast for the province, you’ve likely seen the Atlantic coast swallowed by a persistent white veil while the interior remains sun-drenched.

    Understanding the Nova Scotia fog map is essential for any road trip, whether you are chasing the perfect shot of Peggy’s Cove Lighthouse or navigating the heights of the Cabot Trail The Fog Hotspots: Where the Mist Lingers

    The frequency of fog in Nova Scotia isn't evenly distributed. It is heavily dictated by the interaction between warm air and the cold Atlantic waters. Best timing for least amount of NS fog? - Nova Scotia Forum

    The "fog map" of Nova Scotia is a complex visualization of geographical and meteorological forces. Nova Scotia is among the foggiest regions on Earth, with some coastal areas experiencing nearly 200 days of fog annually

    . This phenomenon is primarily driven by the interaction between major ocean currents and seasonal air masses. Geographical Distribution of Fog

    A comprehensive fog map of Nova Scotia reveals a stark contrast between coastal and inland regions: Southwest Coast & Yarmouth : This is the epicenter of fog in the province. averages roughly 191 foggy days per year fog map nova scotia

    . The southwestern tip is particularly vulnerable due to tidal currents and its proximity to where cold and warm waters first meet. Atlantic-facing Coast : Areas along the southeastern shore, including (averaging 121 foggy days

    ), experience high frequency as fog rolls in from the open Atlantic. Offshore Locations Sable Island Grand Banks

    are notorious "fog factories," with fog present up to 40% of the time during peak summer months. Inland & Northern Shores : Regions like the Annapolis Valley Northumberland Strait Bay of Fundy

    north shore generally see significantly less fog. Inland fog tends to burn off earlier in the morning than coastal fog. The Mechanics: Why Nova Scotia? The primary driver of this thick, persistent fog is . This occurs through several key factors: Oceanic Collision : The warm Gulf Stream flowing north meets the icy Labrador Current flowing south. Condensation

    : When warm, moist air (often from the south or southwest) is blown over these colder northern waters, it cools rapidly to its dew point, forming low-lying clouds of suspended water droplets. Diurnal Movement

    : Fog typically spreads inland at night when the land is cool and retreats toward the sea during the day as the sun warms the land. Seasonal Patterns Fog follows a distinct seasonal cycle in the province: Peak Season (June–July)

    : Early summer is the "foggiest" time because the temperature difference between the warm air and cold ocean is at its highest. Clearing (August–September)

    : As the ocean warms and air temperatures stabilize, fog becomes less frequent. Late summer and autumn are traditionally the clearest and most popular times for tourism. Impact on Life and Transportation

    Fog is more than just a weather pattern in Nova Scotia; it is a cultural and operational hurdle:


    Post Title / Headline:
    Navigating Nova Scotia’s Fog: A Guide to the Fog Map

    Post Body:

    If you’ve ever driven along the South Shore or waited for a ferry in Digby, you know that fog is part of the adventure in Nova Scotia. 🌊🌫️

    But did you know there’s a tool to help you track it? Enter the Fog Map for Nova Scotia – a must-know resource for sailors, cyclists, photographers, and road-trippers.

    📍 Where to find it:
    The most reliable fog map for NS comes from live weather radar and marine forecast data via Environment Canada and Weather.gc.ca. Look for the “Visibility” or “Fog” layers on their marine forecast charts.

    🗺️ What it shows:

    🚗 Why it matters:

    📸 Pro tip for visitors:
    Don’t fear the fog – embrace it! Some of the most atmospheric photos of Peggy’s Cove and Lunenburg come with a blanket of mist rolling off the sea. Check the fog map before sunrise for the best ethereal shots.

    🔗 Bookmark these:

    Hashtags:
    #FogMapNovaScotia #NovaScotiaWeather #SouthShoreFog #CabotTrail #NSMarine #VisitNovaScotia #FoggyDays


    Optional short version (for Twitter / Threads):

    Can’t see the ocean from the road? Check the Fog Map Nova Scotia 🌫️ The Bay of Fundy, with its massive tides,

    Marine fog is iconic here from May–Aug. Use Environment Canada’s visibility charts + Windy to see where the mist will roll in next.

    Great for ferry trips, coastal drives, or chasing moody photos at Peggy’s Cove.

    #NSFog #NovaScotiaTravel


    Navigating the Mists: A Comprehensive Guide to Fog Maps in Nova Scotia

    Located on the eastern coast of Canada, Nova Scotia is a maritime province known for its rugged shoreline, picturesque fishing villages, and unpredictable weather patterns. One of the most significant weather phenomena in Nova Scotia is fog, which can roll in quickly and reduce visibility to near zero. For residents, tourists, and mariners alike, understanding and navigating fog is crucial for safety and planning. This is where a fog map Nova Scotia comes into play – a vital tool for predicting and preparing for foggy conditions.

    Understanding Fog in Nova Scotia

    Fog is a type of cloud that forms at ground level, reducing visibility and making navigation challenging. In Nova Scotia, fog can occur at any time of the year, but it's more prevalent during the spring and summer months when warm air meets the cooler ocean waters. The province's unique geography, with its extensive coastline and numerous bays, inlets, and islands, creates a microclimate that fosters fog formation.

    The Importance of Fog Maps

    A fog map Nova Scotia is a specialized weather map that provides detailed information on fog conditions across the province. These maps are essential for:

    Sources of Fog Maps in Nova Scotia

    Several sources provide fog maps Nova Scotia, including:

    Interpreting Fog Maps

    A fog map Nova Scotia typically displays various levels of fog intensity, which can be categorized as:

    The maps may also indicate the type of fog, such as:

    Using Fog Maps for Planning and Safety

    To make the most of a fog map Nova Scotia, follow these best practices:

    Conclusion

    A fog map Nova Scotia is a vital tool for anyone living, working, or traveling in this beautiful maritime province. By understanding and interpreting fog maps, individuals can plan their activities safely, avoid hazards, and make the most of their time in Nova Scotia. Whether you're a seasoned mariner, a pilot, or a tourist exploring the province, a fog map Nova Scotia is an essential resource to help you navigate the mists and enjoy all that Nova Scotia has to offer. Stay safe, stay informed, and happy navigating!

    Nova Scotia is one of the foggiest places in Canada, particularly along its Atlantic Coastal

    region where warm, moist air from the Gulf Stream meets the cold Labrador Current. The Conference Exchange Fog Frequency by Region

    A "fog map" of the province typically shows a stark contrast between coastal and inland areas: ArcGIS StoryMaps The Atlantic Coast: The foggiest zone, especially on the southwestern tip. leads the province with an average of 191 foggy days per year Offshore Islands: Sable Island experiences heavy fog, averaging annually, often persisting for a week at a time. The Bay of Fundy: A secondary foggy region, reporting between 30 and 65 days of fog annually. Inland Areas: Regions like the Annapolis Valley Seasonality

    are sheltered by mountains and experience significantly less fog, comparable to central Canada. Seasonal Patterns

    Nova Scotia is often affectionately (or frustratingly) called the "Fog Capital of Canada." Understanding the fog map of Nova Scotia is essential for anyone planning a road trip along the coast or navigating the maritime waters. The Geography of Fog in Nova Scotia

    The distribution of fog across the province is largely dictated by its proximity to the Atlantic Ocean. The Atlantic-facing coast is the most fog-prone region, while inland areas and those facing the Northumberland Strait remain significantly clearer.

    Yarmouth & South Shore: This is the foggiest region in the province. Yarmouth averages a staggering 191 foggy days per year.

    Halifax & Central Coast: Halifax sees roughly 121 foggy days annually, with fog often rolling in during the late evening and burning off by mid-morning.

    Cape Breton Island: The southern shores of Cape Breton are frequent targets for dense sea fog, while the northern highlands can experience "upslope fog" as moist air is forced over the mountains.

    Bay of Fundy: Known for its extreme tides, the Bay of Fundy also generates significant fog, though it often clears more rapidly than on the Atlantic side. Seasonal Patterns

    If you are looking to avoid the "grey veil," timing is everything.

    Peak Fog Season (May – July): This is when the temperature difference between the warm land air and the cold Atlantic currents is greatest, leading to frequent "advection fog".

    The "Burn Off" (August – September): As sea surface temperatures rise in late summer, the temperature gap narrows, leading to fewer foggy days. Late August is often cited by locals as the best time for clear coastal views. Why is it so Foggy?

    Nova Scotia’s fog is primarily caused by its unique position where the warm Gulf Stream meets the cold Labrador Current.

    Advection Fog: Warm, moist air from the south travels over the cold coastal waters, cooling the air to its dew point and creating thick blankets of sea fog that "lurk" along the coast.

    Topography: Features like the shelf break and coastal ridges can trap fog in shallow layers, sometimes only 150 meters deep, preventing it from dissipating. Real-Time Resources for Travellers Kejimkujik National Park and National Historic Site

    National park spanning 164.5 square miles of lakes, forests & beaches steeped in Mi'kmaw heritage. Peggy's Cove Lighthouse Peggys Point Rd, Peggy's Cove, NS B3Z 3S1, Canada Best timing for least amount of NS fog? - Nova Scotia Forum

    Mapping fog in Nova Scotia reveals a dramatic divide between its "maritime" and "continental" microclimates. While the Atlantic coast is one of the foggiest places on Earth, inland valleys can be as clear as Central Canada. Fog Frequency by Region

    The "fog map" of Nova Scotia is essentially a gradient from the cold Atlantic waters to the warmer inland terrain. Region Fog Days per Year Characteristics South Shore (Yarmouth) ~191 days

    Highest frequency; home to persistent sea fog due to proximity to the Grand Banks. Atlantic Coast (Halifax) ~74–121 days

    Frequent coastal fog that often "burns off" as it moves a few kilometers inland. Cape Breton Highlands Variable

    Low clouds and fog often obscure views, particularly on the Atlantic-facing slopes. Annapolis Valley / Inland Low

    Protected by topography; experiences mostly radiation fog that clears quickly in the morning. Northumberland Strait Minimal

    Shallower, warmer waters prevent the massive fog banks seen on the South Shore. The Mechanics of Nova Scotia Fog


    Browser Compatibility

    Currently, not all library features are working between browsers. Below are the results of tests done with these major browsers, using their latest versions.

    Google Chrome
    Safari
    Firefox
    Edge
    Opera
    Internet Explorer
    PDF
    HTML
    Images
    JSON

    Thank you BrowserStack for the support. Amazing cross-browser testing tool.

    fog map nova scotia