Transform the HTML resume into a PDF format while maintaining the original template

When attempting to convert an html resume to pdf and print it, I encountered a template issue. This is evidenced by discrepancies in the skills section between the html version and the pdf version.

For reference, here is the Github repository for this project: https://github.com/xriley/DevResume-Theme You can also view a sample HTML file here:

How can this issue be resolved permanently?

The desired outcome is to achieve something like this:

Answer №1

Non-Coding Solution for Adjusting Margins:

To customize margins, you can opt for the custom option in settings to make specific changes for individual pages.

https://i.sstatic.net/fphyh.png

You can then easily reposition text by simply dragging the blue dotted borders according to your requirements.

For example, adjusting the lower border upwards will ensure that the text for senior developers appears on the following page.

https://i.sstatic.net/aOXbZ.png https://i.sstatic.net/V9afa.png


Coding Method for Margin Adjustment:

Simply fine-tune margins as instructed in the non-coding solution above.

Utilize the @page rule in your CSS to control margin settings specifically for printing documents. This allows modification of properties like margins during the printing process only.

@page:first {         <-----  here 'first' pertains to the First Page
 margin-left: 0.75cm;
 margin-top: 0.25cm;
 margin-bottom: 0.25cm;
 margin-right: 0.75cm;
}

If you wish to apply these margins universally across all pages, follow this syntax:

@page { your specified margin values }

For further details on the @page property, refer to this link.

Answer №2

Discovering an easy solution without the need for coding can be a game-changer. One simple method is to host your resume on a website platform like Netlify. Once it's live, head over to and input the link to your CV page. With just a few clicks, you can convert your online resume into a PDF format effortlessly while maintaining the same layout and design.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The Safari browser displays the mobile-friendly version of the website

Everything appears correctly when looking at the website in Firefox and Chrome. However, Safari is displaying the mobile version of the site instead. I did not make any CSS changes specifically for desktop screens while working on the responsive design for ...

Creating a SVG polygon using an array of points in JavaScript

Consider the following array containing points: arr = [ [ 0,0 ], [ 50,50 ], [ 25,25 ], ]; I would like to create an SVG polygon using this array. Initially, I thought the code below would work, but it doesn't: <polygo ...

Tips for eliminating the gap between a heading and column in Bootstrap 4

.rowHeight{ height: 100px; } .padding-0 { padding-right: 0px; paddig-left: 0px; margin-left: 0px; margin-right: 0px; } .cart{ ...

Optimizing VueJS applications with browser caching features for faster loading

I've encountered an issue with my VueJS app. After running npm run build, a new set of dist/* files are generated. However, when I upload them to the server (replacing the old build) and try to access the page in the browser, it seems to be loading th ...

How to easily incorporate images after text in Bootstrap 4 beta

I seem to be having trouble inserting an image in the "menu" section for the last item "Kava so sebou" after the text. I want the picture to be centered vertically and the row to maintain consistency with the other items above it. Any advice or suggestions ...

What is the best way to enhance specific sections of Django content by incorporating <span> tags, while maintaining the original paragraph text format?

I am currently in the process of trying to showcase a paragraph of text (content) from django. However, my aim is to incorporate <span class="modify"> into particular words that match pre-defined words located within a referenceList within the paragr ...

Enhancing list item appearance by replacing bullets with Font Awesome icons

I need to create a list similar to this example https://i.sstatic.net/w84xS.png Although I successfully replaced the bullet with a fontawesome icon, the result is not quite right as shown here https://i.sstatic.net/yqnbJ.png You may notice a difference ...

The React.js navigation bar hamburger menu refuses to close when toggled

Currently, my team and I have developed a react.js application together. The Navbar feature is functioning correctly, except for a small issue. When the Navbar is toggled using the Hamburger menu on a smaller screen, it opens successfully, but the toggle a ...

The selected option in Bootstrap is displayed twice in the Bootstrap modal

I am facing an issue with Bootstrap Select-box showing multiple times in a bootstrap modal wizard. I have tried various solutions from Stack Overflow but none of them seem to work. A screenshot of the problem can be seen below: https://i.sstatic.net/glp3E ...

Creating a circular gradient in CSS

Does anyone know the steps to create a radial gradient in CSS that will match the background shown below? ...

What sets apart styling with div elements versus styling directly on input elements?

Looking at the code provided, we can see that both the div and input element have classes applied to them - "fields" and "input-fields." This raises the question: why do we need both classes? Wouldn't it make more sense to just choose one to style the ...

Is it achievable to use multi-level :not selectors in CSS / JS querySelector?

I have come across numerous tutorials explaining the use of multiple :not selectors on a single element. However, I have yet to find any examples of using :not selectors on different levels within a single CSS / JS querySelector path. For instance, conside ...

Unable to render a form in Servlet HTML

Encountering a similar issue to one I faced previously, but the previous workaround is ineffective this time. The code related to the section is generating the errors displayed below. If the image doesn't load, here's the code: LongLivedCo ...

Creating a CSS background that adjusts to fit any screen resolution

Hey there, I'm a beginner to all of this. I want my background image to adjust to fit any web browser resolution, regardless of the size. So far, I've come across this nifty little trick: html { background: url(images/bg.jpg) no-repeat center ...

Enhancing the mobile navigation bar dropdown in Bootstrap 4

Issue My mobile navigation dropdown appears outdated. Interestingly, when I switch to mobile view using Chrome developer mode, the dropdown looks modern. Snippet I am using Bootstrap 4.3.1 <?php if (isset($admin) && $admin) { ?> ...

The "ID" value for the row that was chosen is unable to be parsed with AJAX JQUERY

After populating an HTML table with data retrieved from a database using PHP, I encountered an issue while trying to fetch the correct ID using AJAX. Following a recommendation to use classes to build my jQuery code, I find myself stuck and unsure of what ...

Instructions on deploying static files to Vercel including HTML, CSS, and JavaScript files

I have encountered an issue and would like to share my solution - please see my initial response. Currently, I am facing a challenge while trying to deploy a repository from my GitHub account. The repository consists of various static files: ├─js ...

Searching for a particular Prettier setting

Seeking a Nicer alternative. I am exploring if there is a way to format code like this without moving the first attribute to a new line: <div class="test-class" [test-binding]="true" (test-binging)="test()" ...

Positioning a list or div in CSS and HTML can be achieved with or without thumbnails

My website showcases our expertise in various topics, each with a header, image, and a brief list. The page displays thumbnail images and headers for all topics, with one topic highlighted in full that users can navigate through by hovering over different ...

Ways to alter the CSS class of individual labels depending on the content of textContent

In my HTML template, I'm using jinja tags to dynamically create labels from a JSON object. The loop responsible for generating this content is detailed below. <div class="card mb-0"> {% for turn in response %} <div class="card-he ...