-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help #8
Comments
I'll have some answers soon. A bit occupied at the moment.
…-Norm
On Sat., Oct. 30, 2021, 3:49 a.m. jaan143, ***@***.***> wrote:
Thank you for your script
i need little help about your script
1. i am generating pdf from md file so i want to increase font size
currently font size is 10
2. i want to change page size also
3. in pdf file every image bellow have image file name which i want to
remove example after image file name like this image-GHT23.jpg
can you help in script where i can change those setting
thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HPZS423HIZHKZTAZL3UJO5TVANCNFSM5HA4NTDA>
.
|
Comments/answers inline:
Thank you for your script
> i need little help about your script
>
> 1. i am generating pdf from md file so i want to increase font size
> currently font size is 10
>
> This is currently hardcoded. I'd like to do some refactoring before
making this adjustable. If you're comfortable working with the code, the
fonts sizes are set in the file *pdf_renderer.py*, lines 18 and 19.
> 1. i want to change page size also
>
> page size is letter or A4. On the command line, use
mdpdf -p A4 ....etc.
> 1. in pdf file every image bellow have image file name which i want
> to remove example after image file name like this image-GHT23.jpg
>
> The markdown format for images is:
![*caption* {width=*width*%}](*filename*)
you can omit the caption and width:
![](*filename*)
…
>
> can you help in script where i can change those setting
>
> thank you
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#8>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABV73HPZS423HIZHKZTAZL3UJO5TVANCNFSM5HA4NTDA>
> .
>
|
@normanlorrain Dear |
@normanlorrain i changed font size in these lines where is already set 10 but i set it to 14 and after save this file i convert pdf but it is still 10 font size fontSize = 14 # choose font size of text after changing this file should i reinstall script ? |
See this example (attached, adapted from the tests/input/quick.md file)
…-Norm
On Tue, 2 Nov 2021 at 01:56, jaan143 ***@***.***> wrote:
@normanlorrain <https://github.com/normanlorrain> Dear
i dont understand about this where i have to set in which file
[image: caption {width=width%}] <http://*filename*>
you can omit the caption and width:
<http://*filename*>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HNJO2K6ONWEYXTIR4DUJ6KTPANCNFSM5HA4NTDA>
.
|
You've edited the code, but it had no effect because you're likely still
running the original that you've installed.
You should uninstall the package, then from within the project you
downloaded, run "pip install -e ." This will use the latest from the code
you've edited.
If this is all a bit much, I'd suggest one of the alternatives listed on
the home page. This project isn't intended to be very flexible, just to
meet my own needs. rst2pdf is excellent, if only it had markdown (but
that's easy to convert with pandoc).
I'm happy to answer any questions you have. Good luck.
…-Norm
On Tue, 2 Nov 2021 at 05:25, jaan143 ***@***.***> wrote:
@normanlorrain <https://github.com/normanlorrain> i changed font size in
these lines where is already set 10 but i set it to 14 and after save this
file i convert pdf but it is still 10 font size
here is those lines where i changed
fontSize = 14 # choose font size of text
headingfontSizes = [18, 16, 14, 12, 10, 10, 10, 14]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HPKC2PIWOWMJPZK3PLUJ7DEJANCNFSM5HA4NTDA>
.
|
font size problem is solved |
See the example in the other email I just sent.
…-Norm
On Tue, 2 Nov 2021 at 09:47, jaan143 ***@***.***> wrote:
font size problem is solved
but please explain me little bit more about how can i remove image file
name which is showing in every image bellow
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HLZCBFPIBWFP6AE5V3UKABZJANCNFSM5HA4NTDA>
.
|
where is example |
(attachments via email didn't work, sorry. See this message) |
thank you very much Dear |
@normanlorrain Dear can i customize page size in your script in inches ? |
Yes. You can do something like this:
pandoc -o test.rst test.md #Converts to rst
rst2pdf test.rst
The pdf file is created in the same directory, same file name.
What is your use case? Multiple files? One-time use or part of a workflow?
…-Norm
On Tue, 2 Nov 2021 at 11:58, jaan143 ***@***.***> wrote:
@normanlorrain <https://github.com/normanlorrain> Dear
can i reconstruct my pdf file using rst2pdf ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HJ2MPOXLCSLLL4LQNLUKAREDANCNFSM5HA4NTDA>
.
|
this one i dont understand how i can reate .rst file i just have md and pdf files (What is your use case? Multiple files? One-time use or part of a workflow?) please Dear Sir |
In this example I'm assuming you'd like to try rst2pdf, which doesn't directly work with markdown. The first step is to convert your markdown to ReStructuredText (rst) format. rst2pdf can then convert this intermediate file. To simplify things a bit, you can stick to just using pandoc; this tool is excellent. It can convert to all sorts of formats. You could even convert your files to Word... |
@normanlorrain can you help me to setup page size in your script ? Thank you |
It's a command-line switch. From the help:
-p, --paper [letter|A4]
e.g.
mdpdf -p A4 ....
…-Norm
On Thu, 4 Nov 2021 at 01:24, jaan143 ***@***.***> wrote:
@normanlorrain <https://github.com/normanlorrain> can you help me to
setup page size in your script ?
you can tell me code and which file and line i have to add i will do it
Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HO5SANXW7GM2ZACU3TUKIYLPANCNFSM5HA4NTDA>
.
|
@normanlorrain yes i knew this command but i asked more custom page size code. eg 7.50 x 9.50 by the way your suggestion about pandoc is too much helpful for me and i am using it. |
You can change this line:
pdf_renderer.py: 43
width, height = (72 * x for x in (7.50, 9.50))
…-Norm
On Thu, 4 Nov 2021 at 08:53, jaan143 ***@***.***> wrote:
@normanlorrain <https://github.com/normanlorrain> yes i knew this command
but i asked more custom page size code. eg 7.50 x 9.50
by the way your suggestion about pandoc is too much helpful for me and i
am using it.
thank you very very much Dear
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HKKACLWGZXOM3P3KRDUKKM5ZANCNFSM5HA4NTDA>
.
|
its working fine |
@normanlorrain Dear i am trying to convert md to pdf file but its not fetching images which is are in same directory with same md file folder name |
See attached zip file with a simplified example.
The output is generated with:
mdpdf -o jaan143.pdf .\lorem.md
Notice there is also a log file. If you still have trouble can you include
that file in future questions? Thanks!
…-Norm
On Thu, 10 Feb 2022 at 04:54, jaan143 ***@***.***> wrote:
@normanlorrain <https://github.com/normanlorrain> Dear i am trying to
convert md to pdf file but its not fetching images which is are in same
directory with same md file folder name
can you please help me about it
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV73HJDODCLVGD7H2ZI7X3U2ORQ7ANCNFSM5HA4NTDA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you for your script
i need little help about your script
can you help in script where i can change those setting
thank you
The text was updated successfully, but these errors were encountered: