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

Can I change pdf to urf format in CUPS? #6199

Open
shinxxxxwon opened this issue Apr 30, 2024 · 0 comments
Open

Can I change pdf to urf format in CUPS? #6199

shinxxxxwon opened this issue Apr 30, 2024 · 0 comments

Comments

@shinxxxxwon
Copy link

Implemented IPP printing function in Android using CUPS.

I print via CUPS in simple application/pdf format.

Printing was successful, but I found that there are quite a few printers that do not support PDF.

ipp_attribute_t* attr;
if ((attr = ippFindAttribute(response, "document-format-supported", IPP_TAG_MIMETYPE)) != NULL){
    ipp_attribute_t* attrTemp = attr;
    while(attrTemp->name){
        LOGE("2. attrTemp attr name => %s", attrTemp->name);
        attrTemp = attrTemp->next;
        if(attrTemp == NULL) break;
    }
}else LOGE("2. attr is null");

The printer I have with the code above

  • SAMSUNG SL-C1404W
  • SAMSUNG SL-M2830DW
  • Epson L6290
    I searched for Mimetypes supported by .

The mimetype commonly supported by the three printers was the image/urf format.

Since I create the content to be printed as a PDF, I need to change the format before printing. Is there a way to convert the format from pdf to urf?

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

1 participant