Skip to content
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

PDF rendering slightly off #8

Closed
cmdcolin opened this issue Mar 13, 2017 · 4 comments
Closed

PDF rendering slightly off #8

cmdcolin opened this issue Mar 13, 2017 · 4 comments

Comments

@cmdcolin
Copy link

Hi there!
I was experimenting with PDF rendering recently and I noticed for example that oftentimes the tracklist has a weird gap around it

For example with this URL there is a gap between the browser and the tracklist:

https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request={url:%22http://jbrowse.org/code/JBrowse-1.11.6/?data=sample_data%2Fjson%2Fvolvox%26loc=ctgA%3A796..1615%26tracks=DNA%26highlight=%26screenshot=p20o1r0n1u1b1m111s000000z1%22,renderType:%22PDF%22,renderSettings:{zoomFactor:1,quality:70,pdfOptions:{format:%22letter%22,orientation:%22landscape%22,footer:null},viewport:{width:1800,height:1200}}}

But with this URL the gap goes away:

https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request={url:%22http://jbrowse.org/code/JBrowse-1.11.6/?data=sample_data%2Fjson%2Fvolvox%26loc=ctgA%3A796..1415%26tracks=DNA%26highlight=%26screenshot=p20o1r0n1u1b1m111s000000z1%22,renderType:%22PDF%22,renderSettings:{zoomFactor:1,quality:70,pdfOptions:{footer:null}}}

I was considering the possibility that this could be an issue with jbrowse core, but given that changing the rendering settings alleviates the issue somewhat, do you think this plugin would benefit from altering the settings passed to phantomjs?

@cmdcolin
Copy link
Author

Note that this happens with default phantomjs too, so this isn't really a bug exclusive to this plugin.

It just seems that some combination of viewport and pdf page size makes it happen

@bhofmei
Copy link
Owner

bhofmei commented Mar 14, 2017 via email

@cmdcolin
Copy link
Author

I just noticed the thing where tracklist gets turned off when PDF selected, seems good!

Ill see if there might be a fix that can be added to jbrowse core could fix it properly!

@cmdcolin
Copy link
Author

Probably just close this issue for now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants