Comments (5)
I'm running into the same issue @shaejaz, did you find any solution to this? Trying to hardcode some margins for a job near the bottom of the page to make the page break a bit cleaner.
from open-resume.
where are you adding the padding/margins?
By adding padding at
from open-resume.
@SkylerA No I haven't managed to find the cause for it yet. My guess is the underlying react-pdf
might have a bug or is not being used correctly.
Imo, it's a minor inconvenience since the realtime PDF view gets updated just fine. It's the download link that has the issue. So once you've made your changes on the layout, restart the dev server and the download URL would give you the updated layout.
from open-resume.
@p0lygun That is where I was trying. I also tried wrapping the individual components in a view with new styles. The changes show up in the preview window, however when you click download link the styles are lost. Restarting the server after the changes didn't seem to help either.
I believe even the default style might be ignored to some degree as I've noticed that if you add a new work experience with the text Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id tortor eget erat ornare tempus
the preview will wrap tempus to the next line, but when you download the pdf you'll actually see it all fit into 1 line. Note this example is most likely style and text dependent (I'm using Roboto, 11pt, standard, Letter)
from open-resume.
Did a bit more research and it looks like this might be an issue in react-pdf itself.
diegomura/react-pdf#1076 mentions that it might be padding/margin specific which i was able to confirm by applying style={{ margin: "3rem", color: "red" }}
to the component I link in my previous post. Both the margin and color change render in the preview, but only the color change is saved to pdf.
This post further theorizes that it might be related to string units not surviving being passed as props which i was able to recreate by changing margin: "3rem"
to margin: 48
and the change was saved to the pdf.
So I'd say if anyone needs to tweak layout for now, try converting your units to pixels and then setting the value as a number instead of a string. Note i also had to restart server and possibly reload page for changes to go through sometimes, didn't dial down the specific sequence
from open-resume.
Related Issues (20)
- Project Links Required HOT 7
- [Feature Request] A scoring system based on parsed data
- Does not support font ligature characters
- Curl call to post a pdf resume
- Add a save option [Feature] HOT 2
- [Feature Request] Indent bullet points
- GPA not applicable in my country
- Workday compability HOT 1
- Allow importing files other than pdf
- [Feature Request] Support more than 1 page resume content rendering HOT 3
- additional featured skills
- Not able to add Image (Avatar) HOT 4
- [FR] Allow for skills to be broken into multiple columns HOT 1
- How to modify it to support normal display of Chinese input on web pages...... HOT 1
- How to run this
- 中文解析完全用不了 HOT 3
- 多页简历
- 如果能上传个人证件照就更好了
- 拉下来的项目创建简历后无法下载pdf是什么情况,下载按钮没用
- Support Markdown in Objective Section
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-resume.