QR code text with line breaks not working in browser text box - qr-code

I'm trying to create a QR Code that when scanned with a 3D barcode scanner, will enter text with line breaks into a browser text box. This is what I have and it works perfectly in Word/Notepad. But when I try to scan it into a text box in a browser it opens a new tab after the first line break and tries to search google downloads.
=image("https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=" & "Line%201%0A%0ALine%202%0ALine%203%0ALine%204%0A%0ALine%205")
Is this something wrong with the code or with how the scanner is programmed?
I have tried many different generators with the same result.

The solution was to use %0D rather than %0A.

Related

Print dynamic images along with text

I need to print dynamic images through a Zebra-ZD420 printer along with text. I am printing the text using ZPL.
To print the static images I upload the image on http://labelary.com and get the ASCII for image along with text.
Can someone help me with printing the dynamic images , I understand the image has to be converted into ASCII before sending it as ZPL command.
I am using LinkOS SDK to print from a Xamarin.Forms app on bluetooth from iOS device.
I was able to find a solution for this.
You have to save the image to the printer, printer.StoreImage("R:IMAGE.GRF", Picture.Path, 400, 300)and print the same image using ZPL ,"^XA^FO320,720^XGR:IMAGE.GRF^FS". You can add more ZPL commands along with following command !

Is it ok to have a ton of white text in Atom text editor

I just moved from Komodo text editor to Atom for multiple reasons. I was just wondering as I was working on a project and I happen to be seeing a ton of white text in my code. I know it is not a syntax error as it would be highlighted in red.
Yes, it's fine. There is an extension named Whitespace which allows you to delete whitespace if you wish. It has other options as well.

Opening PDF files in Photoshop not giving the same result as original image

I am trying to open a normal PDF file in Photoshop. This is how my file should look like
And this is how it looks opening it on Photoshop:
Since Photoshop is not my best area i am having hard time to describe what my problem is hence the bad title. Searching in google with no knowledge of what it is was also hard.
Any suggestions?
EDIT
Here is the PDF file as requested: https://files.fm/u/hq8c4kt9
Can you put a link to your pdf file ? It seems like your pdf have ellements outside of his dimensions. You can maybe try playing with the "crop to" options in the "import pdf" dialog. (first screenshot of this page)

Alfresco webscript text fromat line break

I created an alfresco webscript and output file as xxx.get.text.ftl file.
In the output file(xxx.get.text.ftl), I am trying to create text version of newsletter. But I am not able to get text lines with line break.
if I put
AAAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBB
I am getting as
AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBB
Any Idea what could be the reason?
EDIT:
in my case i have page, template-instance,template and region. It turns out that when I call web script that fill the region it displays as text.But if I call full url like "www.xxx.com/news/my-news" it includes other components like template, page etc. and it turns the output to html. Because output for template or page is hard coded to text/html in surf.
If is text try to add
\n
at the end of line
Whitespace and especially new-line handling is always an issue for template languages because it is not clear whether the remove the new line after a closing template-tag or not. See the freemarker documentation for discussion: http://freemarker.org/docs/dgui_misc_whitespace.html
I think you just have to add an extra newline.

Loss of line breaks after interference with usual mode of creating or viewing content in drupal

have created a module and two custom content types(protocol and protocol2). The module interferes with the usual mode of creating and editing the content type protocol and it changes the usual mode of viewing the content type protocol2.
In both these cases I get the problem that I lose the line breaks that where present in the textarea where the content was added, or in the case of viewing the line breaks that where stored.
That is a text entered in a textarea like this:
"Text
with
line
breaks."
ends up looking like this:
"Text with line breaks."
I have echoed the content of form_state and in both those cases I see no line breaks, and I use form_state when fetching and changing the text.
I'm not sure what the problem might be or exactly when and how that information is lost. Does anyone have any hints?
This probably means that your default text format is one that strips line breaks. Go to admin/config/content/formats to see your text formats and which one is the default.
If you want to specifically set a certain text format for your textarea in your custom module, you something like the below:
$form['yourfield'] = array(
'#type'=>'text_format',
'#format'=>'full_html',
...
...
);
Does that fix it?

Resources