KDP Book Size Calculator
Perfect Your Print-on-Demand Book Dimensions
KDP Book Size Calculator
Enter the total number of words in your manuscript.
Select the type of paperback interior. This affects ink density and cost.
Choose between white or cream paper. Affects page thickness slightly.
Enter the desired width of your book in inches (e.g., 6 for 6×9).
Enter the desired height of your book in inches (e.g., 9 for 6×9).
Select ‘Yes’ if your interior extends to the edge of the page. ‘No’ for designs that stay within margins.
What is a KDP Book Size Calculator?
{primary_keyword} is a specialized tool designed to help authors and publishers determine the optimal physical dimensions and estimated specifications for their print-on-demand books published through Amazon Kindle Direct Publishing (KDP). Unlike digital ebooks, physical books have tangible properties like page count, spine width, and weight, all of which depend on the content and chosen formatting. This calculator takes your manuscript’s word count and formatting choices to predict these crucial physical attributes.
Who should use it?
- Self-published authors using Amazon KDP for print books.
- Independent publishers managing multiple titles.
- Anyone preparing a manuscript for print-on-demand services, especially KDP.
- Designers working on book covers that need to accommodate specific spine widths.
Common misconceptions:
- “Any size will work.” While KDP offers many sizes, choosing an inappropriate size can lead to poor reader experience, higher printing costs, or difficulty in cover design.
- “Page count is fixed by word count.” The type of interior, font size, and trim size all influence the final page count.
- “Weight doesn’t matter.” Shipping costs and reader perception can be influenced by a book’s weight.
KDP Book Size Calculator Formula and Mathematical Explanation
The {primary_keyword} involves several estimations based on industry standards and KDP’s printing processes. While Amazon doesn’t publish exact formulas for all factors, these calculations are derived from common print industry practices and KDP’s known specifications.
1. Projected Page Count
This is an estimate of how many pages your manuscript will occupy at a standard formatting. It varies significantly based on the print type chosen because different paper stocks and ink densities have different thicknesses.
Formula:
Projected Pages = MAX(1, ROUND(Manuscript Word Count / Words Per Page))
Where Words Per Page is an estimated value adjusted by Paperback Type and Interior Type:
- Standard Color / Black and White (White Paper): ~250 words/page
- Standard Color / Black and White (Cream Paper): ~270 words/page
- Premium Color (White Paper): ~200 words/page (due to thicker paper and ink)
- Premium Color (Cream Paper): ~220 words/page
The MAX(1, ...) ensures a minimum of 1 page, and ROUND provides a whole number. KDP has a minimum page count requirement, often 24 pages for standard formats, but this formula provides a content-based estimate.
2. Estimated Weight
Book weight is crucial for calculating shipping costs if you ever fulfill orders yourself or estimate costs for bulk orders. It depends on the page count, trim size, and the density of the paper used.
Formula:
Weight (lbs) = (Projected Pages * Trim Area * Paper Thickness Factor) / 7000
Where:
Trim Area= (Trim Width + 0.25) * (Trim Height + 0.25) inches (approximation including bleed/margins)Paper Thickness Factor(approximate g/in³):- Black and White (White Paper): 100 g/in³
- Black and White (Cream Paper): 110 g/in³
- Standard Color (White Paper): 120 g/in³
- Premium Color (Thicker Paper): 140 g/in³
7000is a conversion factor from grams to pounds (approximately 453.592 grams per pound, and considering cubic inches to cubic feet conversions).
3. Spine Width
The spine width directly impacts the cover design. It’s determined by the number of pages and the thickness of the paper, plus a small allowance for bleed if applicable.
Formula:
Spine Width (inches) = (Projected Pages * Paper Thickness Factor) + Bleed Allowance
Where:
Paper Thickness Factor(approximate inches/page):- Black and White / Standard Color (White Paper): 0.004 inches/page
- Black and White / Standard Color (Cream Paper): 0.0044 inches/page
- Premium Color (Thicker Paper): 0.0055 inches/page
Bleed Allowance: 0.25 inches if bleed is set to ‘Yes’, 0 inches if ‘No’. This is an estimation; KDP might have specific internal calculations for this.
Note: These formulas provide estimates. KDP’s final print output may vary slightly due to the printing process and specific paper batches.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Manuscript Word Count | Total words in the book’s content. | Words | 1,000 – 150,000+ |
| Paperback Type | Interior print quality and color option. | Type | Black and White, Standard Color, Premium Color |
| Interior Type | Paper color choice. | Type | White Paper, Cream Paper |
| Trim Width | The width of the book page. | Inches | 5.00 to 8.50 (common KDP sizes) |
| Trim Height | The height of the book page. | Inches | 7.00 to 11.00 (common KDP sizes) |
| Bleed Setting | Whether interior design elements extend to the edge. | Boolean (Yes/No) | Yes (0.125 in), No (0 in) |
| Words Per Page | Estimated words that fit on one page at standard formatting. | Words/Page | 200 – 270 |
| Paper Thickness Factor | Represents how thick a single page is, varies by paper density and type. | Inches/Page or g/in³ | 0.004 – 0.0055 (inches/page) or 100 – 140 (g/in³) |
| Trim Area | Approximate surface area of a book page. | Square Inches | 35 – 90+ |
| Bleed Allowance | Extra space added to spine width calculation if bleed is enabled. | Inches | 0 or 0.25 |
Practical Examples (Real-World Use Cases)
Example 1: Standard Novel
An author is publishing a standard 80,000-word novel. They choose a popular 6×9 inch trim size, black and white interior on white paper, and decide to use bleed for their page designs.
Inputs:
- Manuscript Word Count: 80,000
- Paperback Type: Black and White
- Interior Type: White Paper
- Trim Width: 6 inches
- Trim Height: 9 inches
- Bleed Setting: Yes (0.125 inches)
Calculations:
- Words Per Page (B&W, White Paper) ≈ 250
- Projected Pages = MAX(1, ROUND(80000 / 250)) = 320 pages
- Paper Thickness Factor (B&W, White Paper) ≈ 0.004 inches/page
- Spine Width = (320 * 0.004) + 0.25 = 1.28 + 0.25 = 1.53 inches
- Trim Area = (6 + 0.25) * (9 + 0.25) = 6.25 * 9.25 = 57.81 sq inches
- Paper Thickness Factor (Weight, B&W, White Paper) ≈ 100 g/in³
- Estimated Weight = (320 * 57.81 * 100) / 7000 ≈ 1,849,920 / 7000 ≈ 264.3 lbs
Outputs:
- Projected Pages: 320
- Estimated Weight: ~0.65 lbs (Note: calculator converts grams to lbs for user-friendliness)
- Spine Width: ~1.53 inches
Interpretation: The author can expect a book around 320 pages. The 1.53-inch spine width is crucial for designing the book cover, ensuring the title and author name are centered correctly. The estimated weight is useful for potential shipping calculations.
Example 2: Children’s Book with Color Illustrations
A children’s book author has 2,000 words and needs to include full-page color illustrations. They opt for the 8.5×11 inch trim size, premium color printing on white paper, and decide against bleed as their images have distinct borders.
Inputs:
- Manuscript Word Count: 2,000
- Paperback Type: Premium Color
- Interior Type: White Paper
- Trim Width: 8.5 inches
- Trim Height: 11 inches
- Bleed Setting: No (0 inches)
Calculations:
- Words Per Page (Premium Color, White Paper) ≈ 200 (lower due to image-heavy pages)
- Projected Pages = MAX(1, ROUND(2000 / 200)) = 10 pages
- Paper Thickness Factor (Premium Color) ≈ 0.0055 inches/page
- Spine Width = (10 * 0.0055) + 0 = 0.055 inches
- Trim Area = (8.5 + 0.25) * (11 + 0.25) = 8.75 * 11.25 = 98.44 sq inches
- Paper Thickness Factor (Weight, Premium Color) ≈ 140 g/in³
- Estimated Weight = (10 * 98.44 * 140) / 7000 ≈ 137,816 / 7000 ≈ 19.7 lbs
Outputs:
- Projected Pages: 10
- Estimated Weight: ~1.5 lbs (Note: calculator converts grams to lbs)
- Spine Width: ~0.055 inches
Interpretation: This short, image-rich book will be around 10 pages. The spine is very narrow, requiring careful cover design. The higher paper thickness factor for premium color results in a higher estimated weight per page compared to a standard black-and-white book of similar page count.
How to Use This KDP Book Size Calculator
Using the {primary_keyword} is straightforward. Follow these steps to get accurate estimates for your print book:
- Enter Manuscript Word Count: Input the total number of words in your book’s content.
- Select Paperback Type: Choose between Black and White, Standard Color, or Premium Color. This choice significantly impacts page count estimation and paper thickness.
- Select Interior Type: Choose ‘White Paper’ or ‘Cream Paper’. Cream paper is slightly thicker and may affect page count slightly.
- Enter Trim Dimensions: Input the desired width and height of your book in inches. Common KDP sizes include 5×8 inches, 5.5×8.5 inches, and 6×9 inches. Ensure you select dimensions that KDP supports for your chosen paperback type.
- Select Bleed Setting: ‘Yes’ adds an extra 0.125 inches to calculations (primarily for spine width), recommended if your page designs go to the very edge. ‘No’ is for designs with clear margins.
- Click ‘Calculate’: The calculator will process your inputs and display the results.
How to Read Results:
- Projected Pages: This is your best estimate of the final page count. Remember KDP has minimum page requirements (e.g., 24 pages for many formats).
- Estimated Weight: Provides an approximation in pounds, useful for shipping estimations.
- Spine Width: This is critical for cover design. Use this measurement to create your cover template in software like Photoshop or GIMP, ensuring your artwork extends correctly across the front cover, spine, and back cover.
Decision-Making Guidance:
- Cover Design: Use the spine width to accurately set up your cover template. A wider spine accommodates more pages.
- Pricing: Page count directly influences KDP’s printing cost, which in turn affects your potential profit margin. Higher page counts (especially with color) mean higher costs.
- Reader Experience: Choosing standard trim sizes and appropriate paper types enhances readability and perceived quality.
Use the ‘Reset’ button to clear fields and start over, and ‘Copy Results’ to save your calculated data.
Key Factors That Affect KDP Book Size Results
Several variables influence the accuracy of the {primary_keyword} and the final physical characteristics of your KDP book. Understanding these helps in making informed decisions:
- Word Count Precision: While straightforward, an exact word count is the foundation. Ensure your manuscript is finalized before calculation.
- Words Per Page Estimation: This is perhaps the most significant variable. Font size, line spacing, margins, paragraph formatting, and the presence of images all dramatically affect how many words fit on a page. Our calculator uses averages; your specific formatting may differ.
- Paper Type and Density: Different paper stocks (white, cream, glossy, matte) have varying thicknesses and densities. Premium color books often use thicker, higher-quality paper than standard black and white books, leading to more pages for the same word count and a wider spine.
- Trim Size Selection: KDP offers a range of supported trim sizes. Choosing a non-standard or very large trim size can increase printing costs and may affect how the book feels in hand. Ensure your chosen size is appropriate for your genre.
- Bleed Setting: Bleed is essential if you have page elements (images, background colors) that touch the edge of the page. Enabling bleed adds a small margin that’s trimmed off, ensuring no white slivers appear. It slightly increases the calculated page count and can influence spine width calculations.
- Ink Saturation (Color Books): Color printing requires more ink and often uses slightly thicker paper stock compared to black and white printing. This can lead to more pages for the same word count and a heavier book.
- Binding Method: KDP uses perfect binding for most paperback books. The way the pages are gathered and glued affects the final spine width. While our calculator estimates this, the actual binding process can introduce minor variations.
- Image Density and Placement: For books with images, the calculation of ‘Words Per Page’ becomes less relevant. If images dominate pages, the page count will be lower than word count suggests. The calculator’s presets try to account for this in color formats, but highly illustrated books might need manual adjustment or specialized calculators.
Frequently Asked Questions (FAQ)
Q1: What is the most common KDP book size?
A: The most popular trim sizes for novels and non-fiction are 6×9 inches and 5.5×8.5 inches. For children’s books, 8.5×11 inches is very common. Always check KDP’s supported trim sizes for your specific print product.
Q2: Can I use my ebook word count directly?
A: Not reliably. Ebooks reflow content dynamically. Physical book page count depends on fixed trim size, font size, line spacing, and margins. The calculator provides an estimate based on typical print formatting.
Q3: How accurate are the weight estimates?
A: The weight estimates are based on standard paper densities and page counts. Actual weight can vary slightly depending on the specific paper batch used by KDP’s printing facility and the exact page count after final formatting.
Q4: Does the calculator account for front/back matter (title page, copyright, TOC)?
A: The calculator estimates page count based primarily on the main manuscript word count. Front matter (title page, copyright, dedication, table of contents) and back matter (index, author bio, acknowledgments) add to the total page count but are not explicitly calculated. You should add a buffer for these elements, typically 5-15 pages, to your calculated page count for accurate cover design.
Q5: What if my book is image-heavy?
A: For image-heavy books (like graphic novels, comic books, or heavily illustrated non-fiction), word count becomes a less reliable predictor of page count. The calculator’s ‘Premium Color’ settings offer a slightly better approximation due to different paper thickness assumptions, but manual estimation based on page layout is often more accurate. You may need to adjust your input or use a different tool.
Q6: How much should I add for spine width if I have bleed?
A: KDP generally recommends adding 0.125 inches to the calculated spine width if you enable bleed. This calculator automatically adds this allowance when you select ‘Yes’ for bleed, aiming for a conservative estimate suitable for cover design.
Q7: Can I use this calculator for hardcovers?
A: This calculator is specifically designed for KDP paperback (softcover) books. Hardcover book construction involves different materials and binding processes, which affect page thickness, spine width, and overall dimensions differently. KDP offers hardcover options, but their specific requirements may differ.
Q8: What happens if I choose a trim size not supported by KDP?
A: If you select a trim size that KDP does not support for your chosen print type (e.g., B&W vs. Color), your book will not be eligible for printing. Always verify the available trim sizes on the KDP platform before finalizing your manuscript and cover design.
// Dummy Chart.js class to make the code runnable without external library
// Replace this with actual Chart.js library if running in a browser
if (typeof Chart === 'undefined') {
var Chart = function(ctx, config) {
this.ctx = ctx;
this.config = config;
console.log("Dummy Chart.js initialized. Please include the actual Chart.js library for visualization.");
this.update = function() { console.log("Dummy chart update called."); };
};
Chart.prototype.update = function() {}; // Mock update method
}
function updateChart(inputs) {
if (!chart) {
initChart();
}
var wordCount = parseFloat(inputs.wordCount) || 0;
var paperbackType = inputs.paperbackType;
var interiorType = inputs.interiorType;
var trimWidth = parseFloat(inputs.trimWidth) || 0;
var trimHeight = parseFloat(inputs.trimHeight) || 0;
var bleed = parseFloat(inputs.bleed) || 0;
var scenarios = [
{ name: "Standard", wordCount: 60000, paperbackType: "blackWhite", interiorType: "white", trimWidth: 6, trimHeight: 9, bleed: 0.125 },
{ name: "Color Book", wordCount: 15000, paperbackType: "premiumColor", interiorType: "white", trimWidth: 8.5, trimHeight: 11, bleed: 0 },
{ name: "Cream Paper", wordCount: 70000, paperbackType: "blackWhite", interiorType: "cream", trimWidth: 5.5, trimHeight: 8.5, bleed: 0.125 }
];
var labels = [];
var spineWidths = [];
var pageCounts = [];
// Use provided calculator logic to get data for chart scenarios
scenarios.forEach(function(scenario) {
var calcResult = calculateKdpBookSize(
scenario.wordCount,
scenario.paperbackType,
scenario.interiorType,
scenario.trimWidth,
scenario.trimHeight,
scenario.bleed
);
labels.push(scenario.name);
spineWidths.push(calcResult.spineWidth);
pageCounts.push(calcResult.projectedPageCount);
});
chart.data.labels = labels;
chart.data.datasets[0].data = spineWidths;
chart.data.datasets[1].data = pageCounts;
chart.update();
}
function toggleFaq(element) {
var parent = element.parentElement;
parent.classList.toggle('active');
}
function calculateKdpBookSize(wordCount, paperbackType, interiorType, trimWidth, trimHeight, bleed) {
var wordsPerPage;
var paperThicknessFactorPage;
var paperThicknessFactorWeight;
var bleedAllowance = parseFloat(bleed) || 0;
if (paperbackType === "premiumColor") {
if (interiorType === "white") {
wordsPerPage = 200;
paperThicknessFactorPage = 0.0055;
paperThicknessFactorWeight = 140;
} else { // Cream Paper
wordsPerPage = 220;
paperThicknessFactorPage = 0.0055; // Premium color paper thickness is similar
paperThicknessFactorWeight = 140;
}
} else { // Black and White or Standard Color
if (interiorType === "white") {
wordsPerPage = 250;
paperThicknessFactorPage = 0.004;
paperThicknessFactorWeight = 100;
} else { // Cream Paper
wordsPerPage = 270;
paperThicknessFactorPage = 0.0044;
paperThicknessFactorWeight = 110;
}
}
var projectedPageCount = Math.max(1, Math.round(parseFloat(wordCount) / wordsPerPage));
var trimArea = (parseFloat(trimWidth) + 0.25) * (parseFloat(trimHeight) + 0.25);
var estimatedWeightGrams = (projectedPageCount * trimArea * paperThicknessFactorWeight);
var estimatedWeightLbs = estimatedWeightGrams / 453.592; // Convert grams to pounds
var spineWidth = (projectedPageCount * paperThicknessFactorPage) + bleedAllowance;
// Ensure results are numbers, handle potential NaN from division by zero etc.
projectedPageCount = isNaN(projectedPageCount) ? 0 : projectedPageCount;
estimatedWeightLbs = isNaN(estimatedWeightLbs) ? 0 : estimatedWeightLbs;
spineWidth = isNaN(spineWidth) ? 0 : spineWidth;
return {
projectedPageCount: projectedPageCount,
estimatedWeight: estimatedWeightLbs.toFixed(2),
spineWidth: spineWidth.toFixed(3)
};
}
function calculate() {
var wordCount = document.getElementById('wordCount').value;
var paperbackType = document.getElementById('paperbackType').value;
var interiorType = document.getElementById('interiorType').value;
var trimWidth = document.getElementById('trimWidth').value;
var trimHeight = document.getElementById('trimHeight').value;
var bleed = document.getElementById('bleed').value;
var errors = {};
if (wordCount === "" || isNaN(wordCount) || parseFloat(wordCount) <= 0) {
errors.wordCount = "Please enter a valid positive word count.";
}
if (trimWidth === "" || isNaN(trimWidth) || parseFloat(trimWidth) <= 0) {
errors.trimWidth = "Please enter a valid positive trim width.";
}
if (trimHeight === "" || isNaN(trimHeight) || parseFloat(trimHeight) <= 0) {
errors.trimHeight = "Please enter a valid positive trim height.";
}
document.getElementById('wordCountError').innerText = errors.wordCount || "";
document.getElementById('trimWidthError').innerText = errors.trimWidth || "";
document.getElementById('trimHeightError').innerText = errors.trimHeight || "";
if (Object.keys(errors).length > 0) {
document.getElementById('resultsSection').style.display = 'none';
return;
}
var result = calculateKdpBookSize(wordCount, paperbackType, interiorType, trimWidth, trimHeight, bleed);
document.getElementById('projectedPageCount').innerText = result.projectedPageCount;
document.getElementById('estimatedWeight').innerText = result.estimatedWeight;
document.getElementById('spineWidth').innerText = result.spineWidth;
// Update main result
var mainResultText = result.projectedPageCount + " Pages";
if (result.spineWidth > 0.05) { // Only show spine width prominently if it's significant
mainResultText += " | Spine: " + result.spineWidth + "\"";
}
document.getElementById('mainResult').innerText = mainResultText;
document.getElementById('resultsSection').style.display = 'block';
// Update chart
var inputsForChart = {
wordCount: wordCount,
paperbackType: paperbackType,
interiorType: interiorType,
trimWidth: trimWidth,
trimHeight: trimHeight,
bleed: bleed
};
updateChart(inputsForChart);
}
function resetCalculator() {
document.getElementById('wordCount').value = "60000";
document.getElementById('paperbackType').value = "blackWhite";
document.getElementById('interiorType').value = "white";
document.getElementById('trimWidth').value = "6";
document.getElementById('trimHeight').value = "9";
document.getElementById('bleed').value = "0.125";
document.getElementById('wordCountError').innerText = "";
document.getElementById('trimWidthError').innerText = "";
document.getElementById('trimHeightError').innerText = "";
document.getElementById('resultsSection').style.display = 'none';
// Optionally clear chart or reset to default scenarios
updateChart({ // Reset chart to default scenarios
wordCount: "60000",
paperbackType: "blackWhite",
interiorType: "white",
trimWidth: "6",
trimHeight: "9",
bleed: "0.125"
});
}
function copyResults() {
var mainResultElement = document.getElementById('mainResult');
var projectedPageCount = document.getElementById('projectedPageCount').innerText;
var estimatedWeight = document.getElementById('estimatedWeight').innerText;
var spineWidth = document.getElementById('spineWidth').innerText;
var wordCount = document.getElementById('wordCount').value;
var paperbackType = document.getElementById('paperbackType').options[document.getElementById('paperbackType').selectedIndex].text;
var interiorType = document.getElementById('interiorType').options[document.getElementById('interiorType').selectedIndex].text;
var trimWidth = document.getElementById('trimWidth').value;
var trimHeight = document.getElementById('trimHeight').value;
var bleed = document.getElementById('bleed').options[document.getElementById('bleed').selectedIndex].text;
var resultsText = "--- KDP Book Size Calculator Results ---\n\n";
resultsText += "Primary Result: " + mainResultElement.innerText + "\n\n";
resultsText += "--- Key Intermediate Values ---\n";
resultsText += "Projected Pages: " + projectedPageCount + "\n";
resultsText += "Estimated Weight: " + estimatedWeight + " lbs\n";
resultsText += "Spine Width: " + spineWidth + " inches\n\n";
resultsText += "--- Key Assumptions ---\n";
resultsText += "Manuscript Word Count: " + wordCount + "\n";
resultsText += "Paperback Type: " + paperbackType + "\n";
resultsText += "Interior Type: " + interiorType + "\n";
resultsText += "Trim Dimensions: " + trimWidth + "\" x " + trimHeight + "\"\n";
resultsText += "Bleed Setting: " + bleed + "\n";
try {
navigator.clipboard.writeText(resultsText).then(function() {
// Success feedback
var button = document.getElementById('copyBtn');
var originalText = button.innerText;
button.innerText = "Copied!";
setTimeout(function() {
button.innerText = originalText;
}, 2000);
}, function(err) {
console.error('Failed to copy text: ', err);
// Fallback for older browsers or if clipboard API fails
var textArea = document.createElement("textarea");
textArea.value = resultsText;
textArea.style.position = "fixed"; //avoid scrolling to bottom
textArea.style.left = "-9999px";
textArea.style.top = "-9999px";
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful';
console.log('Fallback: Copying text command was ' + msg);
var button = document.getElementById('copyBtn');
var originalText = button.innerText;
button.innerText = "Copied!";
setTimeout(function() {
button.innerText = originalText;
}, 2000);
} catch (err) {
console.error('Fallback: Oops, unable to copy', err);
}
document.body.removeChild(textArea);
});
} catch (e) {
console.error('Clipboard API not available or failed:', e);
// Fallback for older browsers or if clipboard API fails
var textArea = document.createElement("textarea");
textArea.value = resultsText;
textArea.style.position = "fixed"; //avoid scrolling to bottom
textArea.style.left = "-9999px";
textArea.style.top = "-9999px";
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful';
console.log('Fallback: Copying text command was ' + msg);
var button = document.getElementById('copyBtn');
var originalText = button.innerText;
button.innerText = "Copied!";
setTimeout(function() {
button.innerText = originalText;
}, 2000);
} catch (err) {
console.error('Fallback: Oops, unable to copy', err);
}
document.body.removeChild(textArea);
}
}
document.getElementById('calculateBtn').onclick = calculate;
document.getElementById('resetBtn').onclick = resetCalculator;
document.getElementById('copyBtn').onclick = copyResults;
// Initial calculation on page load with default values
document.addEventListener('DOMContentLoaded', function() {
resetCalculator(); // Sets default values and displays them
calculate(); // Perform calculation with defaults
// Ensure chart is initialized only once
if (typeof Chart !== 'undefined') {
initChart();
updateChart({ // Update chart with initial default values
wordCount: document.getElementById('wordCount').value,
paperbackType: document.getElementById('paperbackType').value,
interiorType: document.getElementById('interiorType').value,
trimWidth: document.getElementById('trimWidth').value,
trimHeight: document.getElementById('trimHeight').value,
bleed: document.getElementById('bleed').value
});
} else {
console.warn("Chart.js library not found. Chart will not be displayed.");
document.getElementById('dimensionChart').style.display = 'none';
}
});